Rewrite some aliases for aptitude.
This commit is contained in:
parent
ada859c979
commit
e64315f57c
|
@ -1,3 +1,6 @@
|
|||
2014-11-17 1.0.4
|
||||
Rewrite some aliases for aptitude.
|
||||
|
||||
2014-09-27 1.0.3
|
||||
Features update:
|
||||
- Try to use printf instead of echo
|
||||
|
|
12
zshrc
12
zshrc
|
@ -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)
|
||||
# `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. "
|
||||
if [ ${USER} != "root" ]; then
|
||||
alias sudo='sudo '
|
||||
alias s='sudo '
|
||||
if [ ${USER} != "root" ]; then
|
||||
alias si='sudo iptables -L -vn '
|
||||
alias sp='sudo puppet agent -t '
|
||||
alias sv='sudo vi '
|
||||
alias sz='sudo zsh '
|
||||
else
|
||||
alias sudo='sudo '
|
||||
alias s='sudo '
|
||||
alias si='iptables -L -vn '
|
||||
alias sp='puppet agent -t '
|
||||
alias sv='vi '
|
||||
|
@ -84,16 +82,18 @@ alias most='most -w'
|
|||
|
||||
# Commandes de gestion des paquets pour aptitude ou yum
|
||||
if [ -d /etc/apt ]; then
|
||||
alias update='aptitude update'
|
||||
alias show='aptitude show'
|
||||
alias se='aptitude search'
|
||||
alias ins='aptitude 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 pol='apt-cache policy '
|
||||
else
|
||||
alias update='yum update'
|
||||
alias up='yum update'
|
||||
alias show='yum info'
|
||||
alias se='yum search'
|
||||
|
|
Loading…
Reference in New Issue