/home/techb158/.nvm/test/sourcing
NameSizeModeActions
Sourcing nvm.sh global alias bug8630775editdlrm
Sourcing nvm.sh should keep version if one is active5920775editdlrm
Sourcing nvm.sh with --install and .nvmrc should install it8500775editdlrm
Sourcing nvm.sh with --no-use should not use anything9920775editdlrm
Sourcing nvm.sh with no default should return 03140775editdlrm
Edit: /home/techb158/.nvm/test/sourcing/Sourcing nvm.sh should keep version if one is active (592B)
#!/bin/sh die () { echo "$@" ; exit 1; } echo '0.10.1' > ../../alias/default || die "couldn't create default alias" \. ../../nvm.sh || die 'sourcing returned nonzero exit code' NVM_TARGET=0.10.3 NVM_DEFAULT="$(nvm_resolve_local_alias default)" [ "_$NVM_DEFAULT" != "_$NVM_TARGET" ] || die "default $NVM_DEFAULT is the same as target $NVM_TARGET" nvm use $NVM_TARGET || die "nvm use $NVM_TARGET failed" \. ../../nvm.sh || die 'sourcing returned nonzero exit code' NVM_CURRENT="$(nvm current)" [ "_${NVM_CURRENT#v}" = "_$NVM_TARGET" ] || die "node version not retained after sourcing"