From 428331fce6ca238865f286470eb4c8f3d8cfc5c1 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 29 May 2017 17:32:41 +0700 Subject: [PATCH] Re-run nvm ls-remote after using a mirror Otherwise we're left with data from the mirror cached when we run nvm ls --- zsh-nvm.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 45ae7ef..6902b9c 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -179,9 +179,11 @@ _zsh_nvm_install_wrapper() { case $2 in 'rc') NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/rc/ nvm install node + nvm ls-remote > /dev/null 2>&1 ;; 'nightly') NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm install node + nvm ls-remote > /dev/null 2>&1 ;; *) _zsh_nvm_nvm "$@"