Swap manual unset for nvm unload

This commit is contained in:
Luke Childs 2015-09-24 19:14:48 +01:00
parent 71a56a45ab
commit 26d8a71161
1 changed files with 4 additions and 7 deletions

11
nvm.sh
View File

@ -8,13 +8,10 @@
{ # this ensures the entire script is downloaded #
unset NVM_DIR
unset NVM_NODEJS_ORG_MIRROR
unset NVM_IOJS_ORG_MIRROR
unset NVM_RC_VERSION
unset NODE_PATH
unset NVM_PATH
unset NVM_BIN
# Unload any existing environment variables
if type nvm | grep -i function > /dev/null; then
nvm unload
fi
NVM_SCRIPT_SOURCE="$_"