Procházet zdrojové kódy

Fix syntax error in zsh config

Emmanuel Bouthenot před 9 roky
rodič
revize
4e57fbda3d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      .zsh/config/02_runasroot.zsh

+ 1 - 1
.zsh/config/02_runasroot.zsh

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