diff options
author | tdro <tdro@users.noreply.github.com> | 2020-01-06 19:23:31 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-01-06 19:23:31 -0500 |
commit | fea4b1193bece507a715da42d626d3be14af681d (patch) | |
tree | ef3948bb70f3d353ab17095c54e2adbfa98afc42 /.bash_profile | |
parent | 8401e26aa29003b3616f252537087c8c76714bb1 (diff) | |
download | dotfiles-fea4b1193bece507a715da42d626d3be14af681d.tar.gz dotfiles-fea4b1193bece507a715da42d626d3be14af681d.tar.bz2 dotfiles-fea4b1193bece507a715da42d626d3be14af681d.zip |
.bash_profile: Source bashrc on non graphical terminals
Prevent sourcing bashrc twice
Diffstat (limited to '.bash_profile')
-rw-r--r-- | .bash_profile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile index dd34dd3..449b9f9 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,3 +1,5 @@ # ~/.bash_profile -[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx &> /dev/null +[[ $XDG_VTNR -ne 1 ]] && . ~/.bashrc; + +[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx &> /dev/null; |