mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 01:43: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
|
||||
#
|
||||
. ~/.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
|
||||
|
||||
|
|
Loading…
Reference in a new issue