From 2dcf885212b9e1af3c180a5646849ea5c32dd73f Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 14 Dec 2017 17:46:27 +0100 Subject: [PATCH] Terminate grep options (--) in some aliases. --- zshrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zshrc b/zshrc index a160458..7dbfb93 100644 --- a/zshrc +++ b/zshrc @@ -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