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