Add test to check if .profile exists

This commit is contained in:
Andrew Scott 2023-03-15 00:02:26 -04:00
parent 484bcb4b2b
commit 420cbc4a34
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -1,10 +1,9 @@
# #
# ~/.bash_profile # ~/.bash_profile
# #
. ~/.profile [[ -f ~/.profile ]] && . ~/.profile
[[ -f ~/.bashrc ]] && . ~/.bashrc [[ -f ~/.bashrc ]] && . ~/.bashrc
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then [[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec startx
exec startx
fi