Jelajahi Sumber

Fix syntax error in zsh config

Emmanuel Bouthenot 9 tahun lalu
induk
melakukan
4e57fbda3d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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