From b54e147442eec5b88bff5b32357f4b60be9d686a Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 18 Feb 2017 00:50:33 -0800 Subject: [PATCH] [Fix] `nvm unload`: run `nvm deactivate` before unsetting everything. Fixes #1399. --- nvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nvm.sh b/nvm.sh index f02ffba..6b95788 100755 --- a/nvm.sh +++ b/nvm.sh @@ -3166,6 +3166,7 @@ nvm() { nvm_echo '0.33.0' ;; "unload" ) + nvm deactivate >/dev/null 2>&1 unset -f nvm \ nvm_iojs_prefix nvm_node_prefix \ nvm_add_iojs_prefix nvm_strip_iojs_prefix \