xdg: export various XDG_*_DIR variables
[~bandali/configs] / .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"
 
+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