Terminate grep options (--) in some aliases.

This commit is contained in:
Jeremy Gardais 2017-12-14 17:46:27 +01:00
parent 79f529d038
commit 2dcf885212
1 changed files with 6 additions and 6 deletions

12
zshrc
View File

@ -125,9 +125,9 @@ fi
alias grep='grep --color=always -i '
alias gerp='grep -i'
alias Grep='\grep '
alias gdpkg='dpkg -l | grep '
alias gmount='mount | grep '
alias gdf='df | grep '
alias gdpkg='dpkg -l | grep -- '
alias gmount='mount | grep -- '
alias gdf='df | grep -- '
# Espace disque
alias df='df -kTh'
@ -144,7 +144,7 @@ fi
alias wotgobblemem='ps -o time,ppid,pid,nice,pcpu,pmem,user,comm -A | sort -n -k 6 | tail -15'
# Afficher uniquement le processus à partir de ps
alias px='ps faux|grep -v grep|grep -i -e VSZ -e'
alias px='ps faux|grep -v grep|grep -i -e VSZ -e --'
# Décompression
@ -210,7 +210,7 @@ else
alias hist="fc -El 0 | $PAGER +G"
#alias hist="less +G ~/.zsh/history"
fi
alias ghist='fc -El 0 | grep'
alias ghist='fc -El 0 | grep --'
## Gestion des répertoires
alias u='cd ..'
@ -248,7 +248,7 @@ alias diff='colordiff -u'
alias diffs='\diff --side-by-side'
# Recherche toutes les occurences de l'arguments passé en paramètre dans l'historique des commandes
alias param='fc -l 0 | grep'
alias param='fc -l 0 | grep --'
# Multimédia
##Extraire la piste audio d'un .avi