If there's no "default" specified, fall back to an .nvmrc file.

master
Jordan Harband 2014-09-15 07:54:30 -07:00
parent 152904e3fb
commit d5d66c34d9
1 changed files with 5 additions and 1 deletions

6
nvm.sh
View File

@ -842,5 +842,9 @@ nvm() {
esac
}
nvm ls default >/dev/null && nvm use default >/dev/null || true
if nvm ls default >/dev/null; then
nvm use default >/dev/null
elif nvm_rc_version >/dev/null 2>&1; then
nvm use >/dev/null
fi