summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-10-28 11:01:31 +0100
committerPatrick Simianer <pks@pks.rocks>2018-10-28 11:01:31 +0100
commit2167b4a8d3658c3546c6bf36aadb901c296d8772 (patch)
treeb252844a5e562c9c61f7db3d45a7d22fdbd35cf4 /zsh
parent45bc5b8fba4600921154dd55ee9a65af7863f5cf (diff)
zsh: fix
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zlogin12
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