From a773e43891d4f9a4b6a0508fc178642518c38049 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 27 Feb 2017 10:03:04 +0100 Subject: [PATCH] Add new aliases with grep --- zshrc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/zshrc b/zshrc index 5b14b20..fa5915c 100644 --- a/zshrc +++ b/zshrc @@ -58,12 +58,6 @@ alias ca='cat -n' # Nécessite le paquet libnotify-bin alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' -# Recherche d'un mot dans des fichiers -alias grep='grep --color=always -i ' -alias gerp='grep -i' -##Sensisble à la casse -alias Grep='grep ' - # Nettoyage de l'écran alias c='clear' # Liste le contenu du dossier @@ -105,8 +99,13 @@ else alias version='yum info &1|grep "Version"' fi -# Gestion de paquet -alias dlis='dpkg -l | grep ' +# Grep aliases +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 ' # Espace disque alias df='df -kTh'