From 2c00fbe1c7b984a209699f291e4001b7be6aefc1 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Mon, 8 Apr 2019 19:36:19 +0200 Subject: [PATCH] zsh: improve conditions in .zlogin --- zsh/.zlogin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/.zlogin b/zsh/.zlogin index 0eb744b..4cd88e3 100755 --- a/zsh/.zlogin +++ b/zsh/.zlogin @@ -1,5 +1,5 @@ emulate sh -c 'source /etc/profile' -if [ `tty` = /dev/tty1 ]; then - startx +if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx fi