summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zprofile.base2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/zprofile.base b/zsh/zprofile.base
index 3a49327..88414a9 100644
--- a/zsh/zprofile.base
+++ b/zsh/zprofile.base
@@ -24,4 +24,4 @@ export QT_QPA_PLATFORMTHEME="qt5ct"
export LESSHISTFILE="-"
# Autostart x11 after login
-if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then startx ~/.config/x11/xinitrc; fi
+if [[ $USER != "root" ] && [ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then startx ~/.config/x11/xinitrc; fi