diff options
Diffstat (limited to '.zprofile')
-rw-r--r-- | .zprofile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +if type startx &>/dev/null && ! pgrep X >/dev/null; then + [[ -z $TTY ]] && TTY=$(tty) + TTY=${TTY#/dev/} + + if [[ $TTY = tty1 ]]; then + startx | systemd-cat -t Xorg-session + exit + fi +fi + if tty -s && [[ -z $DISPLAY ]]; then if type tmux &>/dev/null; then if [[ -z "$TMUX" ]]; then |