|
@@ -2,7 +2,7 @@
|
|
# Use the user zsh configuration as root
|
|
# Use the user zsh configuration as root
|
|
#
|
|
#
|
|
|
|
|
|
-if [[ "$SUDO_USER" ]] && [[ "$UID" = 0 ]]; then
|
|
|
|
|
|
+if [[ -n "$SUDO_USER" ]] && [[ "$UID" = 0 ]]; then
|
|
# define root history path
|
|
# define root history path
|
|
export HISTFILE="$ZSHDOTDIR/history/history_root"
|
|
export HISTFILE="$ZSHDOTDIR/history/history_root"
|
|
if [[ -f ~/.zcompdump ]]; then
|
|
if [[ -f ~/.zcompdump ]]; then
|