From b825dca18c80a5b4f2e0c29f347cf4fd67860342 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Wed, 29 Apr 2020 23:12:43 -0700 Subject: [PATCH] Add user dirs as environment variables --- profile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profile b/profile index 37272f4..3e4ab66 100644 --- a/profile +++ b/profile @@ -12,6 +12,8 @@ export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"} export NVM_DIR="${XDG_CONFIG_HOME}/nvm" +[[ -f $XDG_CONFIG_HOME/user-dirs.dirs ]] && eval $( + cat $XDG_CONFIG_HOME/user-dirs.dirs | awk '/^XDG_/ {print "export " $1}') [[ -f $HOME/.bashrc ]] && source $HOME/.bashrc [[ -f $NVM_DIR/nvm.sh ]] && source $NVM_DIR/nvm.sh [[ -r $NVM_DIR/bash_completion ]] && source $NVM_DIR/bash_completion