From 04d6b3dad9a710522a7ca53f167373c1cf90e287 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 29 May 2017 17:43:17 +0700 Subject: [PATCH] Add console output while clearing mirror cache Otherwise it looks like we're just hanging --- zsh-nvm.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 6902b9c..f3f088a 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -179,11 +179,15 @@ _zsh_nvm_install_wrapper() { case $2 in 'rc') NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/rc/ nvm install node + echo "Clearing mirror cache..." nvm ls-remote > /dev/null 2>&1 + echo "Done!" ;; 'nightly') NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm install node + echo "Clearing mirror cache..." nvm ls-remote > /dev/null 2>&1 + echo "Done!" ;; *) _zsh_nvm_nvm "$@"