Don't source /etc/profile & $HOME/.profile if nonexistant in xinit

This commit is contained in:
Miles Alan 2020-09-19 17:08:43 -05:00
parent f16b3f9762
commit deb83c0967

View file

@ -2,8 +2,8 @@
envvars() {
# shellcheck disable=SC1091
. /etc/profile
. ~/.profile
[ -f /etc/profile ] && . /etc/profile
[ -f "$HOME"/.profile ] && . "$HOME"/.profile
command -v "$TERM" || export TERM=st
command -v "$BROWSER" || export BROWSER=surf
command -v "$EDITOR" || export EDITOR=vis