Add new aliases with grep
This commit is contained in:
parent
326cecec4e
commit
a773e43891
15
zshrc
15
zshrc
|
@ -58,12 +58,6 @@ alias ca='cat -n'
|
||||||
# Nécessite le paquet libnotify-bin
|
# 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$//'\'')"'
|
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
|
# Nettoyage de l'écran
|
||||||
alias c='clear'
|
alias c='clear'
|
||||||
# Liste le contenu du dossier
|
# Liste le contenu du dossier
|
||||||
|
@ -105,8 +99,13 @@ else
|
||||||
alias version='yum info &1|grep "Version"'
|
alias version='yum info &1|grep "Version"'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Gestion de paquet
|
# Grep aliases
|
||||||
alias dlis='dpkg -l | grep '
|
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
|
# Espace disque
|
||||||
alias df='df -kTh'
|
alias df='df -kTh'
|
||||||
|
|
Loading…
Reference in New Issue