ohmyzsh/plugins/nvm/nvm.plugin.zsh
2016-07-13 13:08:16 -07:00

7 lines
266 B
Bash

# The addition 'nvm install' attempts in ~/.profile
if [ -f $HOME/.nvm/nvm.sh ]; then # manual user-local installation
. ~/.nvm/nvm.sh
elif [ $commands[brew] -a -f `brew --prefix`/opt/nvm/nvm.sh ]; then # mac os x with brew
. $(brew --prefix)/opt/nvm/nvm.sh
fi