|
@@ -59,6 +59,9 @@ if [ "$SUDO_USER" -a $UID = 0 ]; then
|
|
# ugly hack : reset some file perms to normal to avoid warnings
|
|
# ugly hack : reset some file perms to normal to avoid warnings
|
|
chmod 0644 ~/.zcompdump
|
|
chmod 0644 ~/.zcompdump
|
|
chown $SUDO_USER:$SUDO_USER ~/.zcompdump
|
|
chown $SUDO_USER:$SUDO_USER ~/.zcompdump
|
|
|
|
+
|
|
|
|
+ # unsetting TMPDIR when logged as root
|
|
|
|
+ [ -z "$TMPDIR" ] && unset TMPDIR
|
|
fi
|
|
fi
|
|
|
|
|
|
# sourcing extra file
|
|
# sourcing extra file
|