xdg: export various XDG_*_DIR variables
authorAmin Bandali <mab@gnu.org>
Mon, 27 Jan 2020 19:29:26 +0000 (14:29 -0500)
committerAmin Bandali <mab@gnu.org>
Mon, 27 Jan 2020 19:29:26 +0000 (14:29 -0500)
.profile

index 65221c4..b419e55 100644 (file)
--- a/.profile
+++ b/.profile
@@ -23,6 +23,12 @@ export INFOPATH
 export XDG_CONFIG_HOME="$HOME/.config"
 export XDG_DATA_HOME="$HOME/.local/share"
 
 export XDG_CONFIG_HOME="$HOME/.config"
 export XDG_DATA_HOME="$HOME/.local/share"
 
+if [ -f "$HOME/.config/user-dirs.dirs" ]; then
+    set -a
+    . "$HOME/.config/user-dirs.dirs"
+    set +a
+fi
+
 export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
 export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
 
 export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
 export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc