From bba3a498f4400dc8d08c018e842a647329e2d60c Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 2 Apr 2019 15:49:48 -0700 Subject: [PATCH] manually set NVM_DIR to avoid dumping .nvm to ~/.config --- profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profile b/profile index bfaf22a..37272f4 100644 --- a/profile +++ b/profile @@ -10,5 +10,8 @@ export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"} export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:="$HOME/.config"} export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"} -[[ -f $HOME/.nvm/nvm.sh ]] && source $HOME/.nvm/nvm.sh +export NVM_DIR="${XDG_CONFIG_HOME}/nvm" + +[[ -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