also source ~/.profile when looking for envvars

I have the impression that setting environment variables in the custom
xinit script doesn't always work properly (no idea why). Putting them in
~/.profile seems to be more robust. Sourcing it is a good idea anyhow,
hence this patch:
This commit is contained in:
Maarten van Gompel 2020-09-13 21:12:38 +02:00 committed by Miles Alan
parent 41f2adf18a
commit 7830d95209

View file

@ -3,6 +3,7 @@
envvars() {
# shellcheck disable=SC1091
. /etc/profile
. ~/.profile
command -v "$TERM" || export TERM=st
command -v "$BROWSER" || export BROWSER=surf
command -v "$EDITOR" || export EDITOR=vis