diff --git a/dot_bash_profile b/dot_bash_profile index 13b41c3..c7c22af 100644 --- a/dot_bash_profile +++ b/dot_bash_profile @@ -1,10 +1,9 @@ # # ~/.bash_profile # -. ~/.profile +[[ -f ~/.profile ]] && . ~/.profile [[ -f ~/.bashrc ]] && . ~/.bashrc -if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then - exec startx -fi +[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec startx +