mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 17:25:23 +02:00
[zsh] New aliases
This commit is contained in:
parent
0c800030d2
commit
dbb8e02cf9
1 changed files with 10 additions and 0 deletions
10
zsh/zshrc
10
zsh/zshrc
|
@ -146,6 +146,16 @@ if [ -f ~/.bash_aliases ]; then
|
|||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# zsh specific
|
||||
alias -g L="| less" # Write L after a command to page through the output.
|
||||
alias -g H="| head -n 20" # Write L after a command to get the 20 first lines
|
||||
alias -g G='| grep --color -i' # Write G after the command to grep it
|
||||
alias -g TL='| tail -20'
|
||||
alias -g NUL="> /dev/null 2>&1" # Redirect stdout and stderr to /dev/null.
|
||||
alias -g NE="2> /dev/null" # Redirect stderr to /dev/null
|
||||
|
||||
[ -x /usr/bin/xpdf ] && alias -s pdf="xpdf"
|
||||
|
||||
##################################################################
|
||||
## OAR & G5K Integration
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue