Explorar o código

Fix syntax error in zsh config

Emmanuel Bouthenot %!s(int64=9) %!d(string=hai) anos
pai
achega
4e57fbda3d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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