Export $NVM_DIR if it doesn't exist and use it when looking for nvm

This commit is contained in:
Luke Childs 2016-08-01 12:39:59 +01:00
commit 9df597f48c

View file

@ -1,3 +1,5 @@
# The addition 'nvm install' attempts in ~/.profile # Set NVM_DIR if it isn't already defined
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh # Load nvm if it exists
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"