diff --git a/chezmoi/dot_zprofile b/chezmoi/dot_zprofile index d05b585..266d388 100644 --- a/chezmoi/dot_zprofile +++ b/chezmoi/dot_zprofile @@ -1,5 +1,8 @@ -source "${HOME}/.zshrc.d/cbi.sh" 2>/dev/null -if [ "$TTY" = '/dev/tty1' ]; then +if [ -e "${HOME}/.zshrc.d/cbi.sh" ]; then + source "${HOME}/.zshrc.d/cbi.sh" 2>/dev/null +fi + +if [ "$TTY" = '/dev/tty1' ] && [ -t 0 ] && [ -t 1 ] && [ -t 2 ]; then startx exit fi