Add environment preservation for somes sudo cmd.
This commit is contained in:
parent
dafba02f5f
commit
90cd20d3e0
8
zshrc
8
zshrc
|
@ -38,13 +38,13 @@ 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. "
|
||||
alias sudo='sudo '
|
||||
alias s='sudo '
|
||||
alias sudo='sudo -E '
|
||||
alias s='sudo -E '
|
||||
if [ ${USER} != "root" ]; then
|
||||
alias si='sudo iptables -L -vn '
|
||||
alias sp='sudo puppet agent -t '
|
||||
alias sv='sudo vi '
|
||||
alias sz='sudo -i '
|
||||
alias sv='sudo -E vi '
|
||||
alias sz='sudo -E zsh'
|
||||
alias sd='sudo docker'
|
||||
else
|
||||
alias si='iptables -L -vn '
|
||||
|
|
Loading…
Reference in New Issue