Skip to content
Myr

Default $NVM_SYMLINK_CURRENT to off (create a "current" symlink on `use`).

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #499.

authored by Jordan Harband · committed by Jordan Harband · parent 7b6e06e · Browse files · 4 files+11 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+11 added−9 removed

  • tests:+9 added−7 removed
  • other:+2 added−2 removed

4 files+11 added−9 removed

modified:nvm.sh+1 added-1 removed
800 unmodified lines
801 export MANPATH802 export NODE_PATH803 export NVM_PATH="$NVM_VERSION_DIR/lib/node"804 export NVM_BIN="$NVM_VERSION_DIR/bin"805 if [ "$NVM_SYMLINK_CURRENT" = true ] || [ -z "$NVM_SYMLINK_CURRENT" ]; then805 if [ "$NVM_SYMLINK_CURRENT" = true ]; then806 rm -f "$NVM_DIR/current" && ln -s "$NVM_VERSION_DIR" "$NVM_DIR/current"807 fi808 echo "Now using node $VERSION"809 ;;
198 unmodified lines
modified:README.markdown+1 added-1 removed