al-skel/home/.zprofile

20 lines
581 B
Plaintext
Raw Normal View History

# .zprofile
# sourced by zsh when used as a login shell
2018-06-12 02:09:45 -05:00
# Uncomment the below example for multiple sessions
#
# using Ctrl-Alt-F2 will switch you to tty2, and i3 will be started
# using Ctrl-Alt-F1 will switch back to tty1 and openbox
#
# if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
# exec startx ~/.xinitrc openbox
# elif [[ -z $DISPLAY && $XDG_VTNR -eq 2 ]]; then
# exec startx ~/.xinitrc i3
# fi
2018-05-18 22:36:34 -05:00
# automatically run startx when logging in on tty1
# comment this out if using the above example
2018-05-18 22:36:34 -05:00
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx -- vt1 &>/dev/null