From 2167b4a8d3658c3546c6bf36aadb901c296d8772 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 28 Oct 2018 11:01:31 +0100 Subject: zsh: fix --- zsh/.zlogin | 12 +++++++----- 1 file 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 -- cgit v1.2.3