Merge pull request #980 from shinenelson/honor-NVM_DIR

Honor NVM_DIR shell variable set externally
pull/983/head
Nils Winkler 2017-06-20 09:01:31 +02:00 committed by GitHub
commit bdd5e50cf9
1 changed files with 1 additions and 1 deletions

View File

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