changes the default head/tail behaviour to output x lines, where x is the number of lines currently displayed on your terminal
This commit is contained in:
parent
2f509b56eb
commit
435de69a4a
1 changed files with 5 additions and 0 deletions
5
.bashrc
5
.bashrc
|
|
@ -77,6 +77,11 @@ alias lm='ls -al --color=none|less' # pipe through 'less'
|
|||
alias ll='ls -l'
|
||||
alias tree='tree -Csu' # nice alternative to 'ls'
|
||||
|
||||
# changes the default head/tail behaviour to output x lines,
|
||||
# where x is the number of lines currently displayed on your terminal
|
||||
alias head='head -n $((${LINES:-`tput lines 2>/dev/null||echo -n 12`} - 2))'
|
||||
alias tail='tail -n $((${LINES:-`tput lines 2>/dev/null||echo -n 12`} - 2))'
|
||||
|
||||
# nautilus file manager in browser mode without destkop management
|
||||
alias nautile='nautilus --no-desktop --browser'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue