diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2021-08-04 20:10:57 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2021-08-04 20:10:57 -0500 |
commit | 545b042a65598eb35cacafe6c3613750274fe611 (patch) | |
tree | a0f8b1d756ca5363fbabf914f82db37cae639b36 /zsh | |
parent | 8545ec568031c59536be3677f9001d9bf90684e5 (diff) | |
download | dotconfig-545b042a65598eb35cacafe6c3613750274fe611.tar.xz dotconfig-545b042a65598eb35cacafe6c3613750274fe611.zip |
check for root
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/zprofile.base | 2 |
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 |