Improve `nvm use` success output for io.js.

Fixes #623
master
Jordan Harband 2015-01-21 22:06:38 -08:00
parent 7243bd77d3
commit dd146519a2
1 changed files with 5 additions and 1 deletions

6
nvm.sh
View File

@ -1225,7 +1225,11 @@ nvm() {
if [ "$NVM_SYMLINK_CURRENT" = true ]; then
command rm -f "$NVM_DIR/current" && ln -s "$NVM_VERSION_DIR" "$NVM_DIR/current"
fi
echo "Now using node $VERSION"
if nvm_is_iojs_version "$VERSION"; then
echo "Now using io.js $(nvm_strip_iojs_prefix "$VERSION")"
else
echo "Now using node $VERSION"
fi
;;
"run" )
local provided_version