summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-08-04 20:10:57 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2021-08-04 20:10:57 -0500
commit545b042a65598eb35cacafe6c3613750274fe611 (patch)
treea0f8b1d756ca5363fbabf914f82db37cae639b36 /zsh
parent8545ec568031c59536be3677f9001d9bf90684e5 (diff)
downloaddotconfig-545b042a65598eb35cacafe6c3613750274fe611.tar.xz
dotconfig-545b042a65598eb35cacafe6c3613750274fe611.zip
check for root
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