Rewrite some aliases for aptitude.

This commit is contained in:
Jeremy Gardais 2014-11-17 11:04:48 +01:00
parent ada859c979
commit e64315f57c
2 changed files with 10 additions and 7 deletions

View File

@ -1,3 +1,6 @@
2014-11-17 1.0.4
Rewrite some aliases for aptitude.
2014-09-27 1.0.3 2014-09-27 1.0.3
Features update: Features update:
- Try to use printf instead of echo - Try to use printf instead of echo

14
zshrc
View File

@ -37,16 +37,14 @@ alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\
# Faire en sorte que sudo puisse également utiliser les alias! (c'est l'espace qui fait toute la différence) # Faire en sorte que sudo puisse également utiliser les alias! (c'est l'espace qui fait toute la différence)
# `man zshall` partie Aliasing: "If the text ends with a space, the next word in the shell input is treated as though it were in command position for # `man zshall` partie Aliasing: "If the text ends with a space, the next word in the shell input is treated as though it were in command position for
# purposes of alias expansion. " # purposes of alias expansion. "
alias sudo='sudo '
alias s='sudo '
if [ ${USER} != "root" ]; then if [ ${USER} != "root" ]; then
alias sudo='sudo '
alias s='sudo '
alias si='sudo iptables -L -vn ' alias si='sudo iptables -L -vn '
alias sp='sudo puppet agent -t ' alias sp='sudo puppet agent -t '
alias sv='sudo vi ' alias sv='sudo vi '
alias sz='sudo zsh ' alias sz='sudo zsh '
else else
alias sudo='sudo '
alias s='sudo '
alias si='iptables -L -vn ' alias si='iptables -L -vn '
alias sp='puppet agent -t ' alias sp='puppet agent -t '
alias sv='vi ' alias sv='vi '
@ -84,16 +82,18 @@ alias most='most -w'
# Commandes de gestion des paquets pour aptitude ou yum # Commandes de gestion des paquets pour aptitude ou yum
if [ -d /etc/apt ]; then if [ -d /etc/apt ]; then
alias update='aptitude update'
alias show='aptitude show' alias show='aptitude show'
alias se='aptitude search' alias se='aptitude search'
alias ins='aptitude install' alias ins='aptitude install'
alias insexperimental='aptitude -t experimental install' alias insexperimental='aptitude -t experimental install'
alias up='aptitude update && aptitude full-upgrade && aptitude clean' alias up='aptitude update'
alias upg='aptitude upgrade'
alias fup='aptitude full-upgrade'
alias apcl='aptitude clean'
alias apurge="aptitude purge '~c'"
alias version='apt-show-versions' alias version='apt-show-versions'
alias pol='apt-cache policy ' alias pol='apt-cache policy '
else else
alias update='yum update'
alias up='yum update' alias up='yum update'
alias show='yum info' alias show='yum info'
alias se='yum search' alias se='yum search'