zsh: replace zlogin with zprofile

master
Guillaume Dott 2021-10-29 09:31:34 +02:00
parent 454a1ef236
commit 0a0fccd937
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +0,0 @@
emulate sh -c 'source /etc/profile'
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && "$(tty)" = "/dev/tty1" ]]; then
exec startx
fi

6
zsh/.zprofile 100755
View File

@ -0,0 +1,6 @@
emulate sh -c 'source /etc/profile'
# if systemctl -q is-active graphical.target && [[ ! $DISPLAY && "$(tty)" = "/dev/tty1" ]]; then
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx
fi