setup-cockpit/dotfiles/zsh/zprofile

8 lines
179 B
Bash

# ~/.zprofile
#
[[ -x /usr/bin/vim ]] && export EDITOR="/usr/bin/vim"
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi