Modified nvm plugin to fit my needs.

This commit is contained in:
André König 2014-08-16 10:50:49 +02:00
commit 1b3f4c1cd6
5 changed files with 37 additions and 10 deletions

View file

@ -0,0 +1,11 @@
# 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