Honor NVM_DIR shell variable set externally

This commit is contained in:
shine
2017-06-17 17:36:33 +05:30
parent 64abb6476f
commit 2d92d9817f

View File

@@ -5,7 +5,7 @@
cite about-plugin
about-plugin 'node version manager configuration'
export NVM_DIR="$HOME/.nvm"
[ -v $NVM_DIR ] && NVM_DIR="$HOME/.nvm"
# This loads nvm
if command -v brew &>/dev/null && [ -s $(brew --prefix nvm)/nvm.sh ]
then