From 90cd20d3e001234c89d8d0a83d1508c53ae11d1e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 4 Aug 2017 09:08:49 +0200 Subject: [PATCH] Add environment preservation for somes sudo cmd. --- zshrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zshrc b/zshrc index c1b3e00..27b40a2 100644 --- a/zshrc +++ b/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 '