Add new aliases with grep

This commit is contained in:
Jeremy Gardais 2017-02-27 10:03:04 +01:00
parent 326cecec4e
commit a773e43891
1 changed files with 7 additions and 8 deletions

15
zshrc
View File

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