diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-10 11:32:54 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-10 11:32:54 +0200 |
commit | b07e30e9f0dc9736228c33cf0e878309b14308d1 (patch) | |
tree | b93311036b2652c317be4578e16ef807519ef2c9 /config | |
parent | b67476f19c93036cbca590d29378c8219c777d08 (diff) |
don't start gui if root
Diffstat (limited to 'config')
-rw-r--r-- | config/essentials/zsh/.zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index ed9c8ec..279c07b 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -1,6 +1,6 @@ #!/bin/zsh -if [ "/dev/tty1" = "$TTY" ] || [ "/dev/tty2" = "$TTY" ] +if [[ "/dev/tty1" = "$TTY" || "/dev/tty2" = "$TTY" ]] && [[ "$(id -u)" -ne 0 ]] then clear eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents gpg 3A626DD20A32EB2E5DD9CE71CFD9ABC97158CD5D 2> /dev/null)" |