Browse Source

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

Fixes #623
master
Jordan Harband 10 years ago
parent
commit
dd146519a2
  1. 4
      nvm.sh

4
nvm.sh

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

Loading…
Cancel
Save