diff options
author | Patrick Simianer <pks@pks.rocks> | 2018-10-28 11:01:31 +0100 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2018-10-28 11:01:31 +0100 |
commit | 2167b4a8d3658c3546c6bf36aadb901c296d8772 (patch) | |
tree | b252844a5e562c9c61f7db3d45a7d22fdbd35cf4 | |
parent | 45bc5b8fba4600921154dd55ee9a65af7863f5cf (diff) |
zsh: fix
-rw-r--r-- | zsh/.zlogin | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/zsh/.zlogin b/zsh/.zlogin index b9e6d7f..478e144 100644 --- a/zsh/.zlogin +++ b/zsh/.zlogin @@ -1,8 +1,10 @@ if [[ $(uname) == "Linux" ]]; then - if [[ -z $DISPLAY ]] && (( $EUID != 0 )) { - [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) && - startx 1>/tmp/xsession-errors 2>&1 & - vlock - } + if [ ! -n "$SSH_CLIENT" ] || [ ! -n "$SSH_TTY" ]; then + if [[ -z $DISPLAY ]] && (( $EUID != 0 )) { + [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) && + startx 1>/tmp/xsession-errors 2>&1 & + vlock + } + fi fi |