ohmyzsh/custom/plugins/nvm/nvm.plugin.zsh
2014-08-16 10:50:49 +02:00

11 lines
297 B
Bash

# The addition 'nvm install' attempts in ~/.profile
if [ -s ~/.nvm/nvm.sh ]; then
. $HOME/.nvm/nvm.sh
# Check if the NODE_VERSION environment variable is set,
# if so trigger nvm to use this.
if [[ $NODE_VERSION != "" ]]; then
nvm use $NODE_VERSION > /dev/null
fi
fi