summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleks Ozolins <aleks@aleksozolins.com>2020-04-05 09:19:53 -0400
committerGitHub <noreply@github.com>2020-04-05 09:19:53 -0400
commit043c6253537a20875adbfd274c1c3a3377803095 (patch)
tree54371c336f33e17a3d758b3d439221354b4c9d9e
parent26d8e9e006260611cd1daa556b42194612be69f5 (diff)
downloadeibhear-043c6253537a20875adbfd274c1c3a3377803095.tar.gz
eibhear-043c6253537a20875adbfd274c1c3a3377803095.tar.zst
eibhear-043c6253537a20875adbfd274c1c3a3377803095.zip
Update .profile to export XDG base dirs (#526)
Not every program will read them from ~/.config/user-dirs.dirs so might as well export them yourself... Also can now use them elsewhere.
-rw-r--r--.profile3
1 files changed, 3 insertions, 0 deletions
diff --git a/.profile b/.profile
index 1b5460a..890acde 100644
--- a/.profile
+++ b/.profile
@@ -14,6 +14,9 @@ export BROWSER="brave"
export READER="zathura"
export STATUSBAR="${LARBSWM}blocks"
+# Export XDG environmental variables from '~/.config/user-dirs.dirs'
+eval "$(sed 's/^[^#].*/export &/g;t;d' ~/.config/user-dirs.dirs)"
+
# ~/ Clean-up:
#export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs.
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"