1
0
Fork 0
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:
Hyacinthe Cartiaux 2016-02-27 01:55:19 +01:00
parent 0c800030d2
commit dbb8e02cf9

View file

@ -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
#