diff options
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -71,9 +71,9 @@ if [ -d $ZDOTDIR ]; then fi # For sudo shells -#if [ "$USER" = "root" ] -#then - [ "`pwd`" = ~ ] && cd ~$USER +if [ "$USER" = "root" -a "$SUDO_USER" != "$USER" ] +then export HOME=~$USER -#fi + [ "`pwd`" = ~$SUDO_USER ] && cd +fi |