diff --git a/zsh/.zlogin b/zsh/.zlogin deleted file mode 100755 index 568c292..0000000 --- a/zsh/.zlogin +++ /dev/null @@ -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 diff --git a/zsh/.zprofile b/zsh/.zprofile new file mode 100755 index 0000000..f685613 --- /dev/null +++ b/zsh/.zprofile @@ -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