Просмотр исходного кода

Fix syntax error in zsh config

Emmanuel Bouthenot 9 лет назад
Родитель
Сommit
4e57fbda3d
1 измененных файлов с 1 добавлено и 1 удалено
  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