Skip to content
Myr

Merge pull request #376 from koenpunt/nvm-unload

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

authored by Jordan Harband · committed by Jordan Harband · parents 578a601, 703acb0 · Browse files · 2 files+16 added−0 removed
This commit

State

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

Trailers

  • Feature: nvm unload

Diff stats

2 files+16 added−0 removed

  • tests:+11 added−0 removed
  • other:+5 added−0 removed

2 files+16 added−0 removed

added:test/fast/Running "nvm unload" should unset all function and variables.+11 added
1#!/bin/sh23fail () { echo $@ ; exit 1; }45. ../../nvm.sh67type nvm > /dev/null 2>&1 || fail "NVM not loaded"89nvm unload1011type nvm > /dev/null 2>&1 && fail "NVM not unloaded" || exit 0
modified:nvm.sh+5 added
247 unmodified lines
248 echo " nvm alias [<pattern>] Show all aliases beginning with <pattern>"249 echo " nvm alias <name> <version> Set an alias named <name> pointing to <version>"250 echo " nvm unalias <name> Deletes the alias named <name>"251 echo " nvm copy-packages <version> Install global NPM packages contained in <version> to current version"252 echo " nvm unload Unload NVM from shell"253 echo254 echo "Example:"255 echo " nvm install v0.10.24 Install a specific version number"256 echo " nvm use 0.10 Use the latest available 0.10.x release"
370 unmodified lines
627 ;;628 "--version" )629 echo "0.7.0"630 ;;631 "unload" )632 unset -f nvm nvm_print_versions nvm_checksum nvm_ls_remote nvm_ls nvm_remote_version nvm_version nvm_rc_version > /dev/null 2>&1633 unset RC_VERSION NVM_NODEJS_ORG_MIRROR NVM_DIR NVM_CD_FLAGS > /dev/null 2>&1634 ;;635 * )636 nvm help637 ;;638 esac
4 unmodified lines