mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 09:53:10 -05:00
Add test to check if .profile exists
This commit is contained in:
parent
484bcb4b2b
commit
420cbc4a34
1 changed files with 3 additions and 4 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue