Merge pull request #633 from kylev/kv_nvm_brew

Enable discovery and use of nvm installed via homebrew.
pull/636/head
Nils Winkler 2015-12-28 12:55:24 +01:00
commit 56e87d8582
1 changed files with 7 additions and 1 deletions

View File

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