diff --git a/fish/functions/_nvm_index_update.fish b/fish/functions/_nvm_index_update.fish index c1bbe28..c66753d 100644 --- a/fish/functions/_nvm_index_update.fish +++ b/fish/functions/_nvm_index_update.fish @@ -3,7 +3,7 @@ function _nvm_index_update set --local index $nvm_data/.index - if not command curl --location --silent $nvm_mirror/index.tab >$index.temp + if not command curl -q --location --silent $nvm_mirror/index.tab >$index.temp command rm -f $index.temp echo "nvm: Can't update index, host unavailable: \"$nvm_mirror\"" >&2 return 1 diff --git a/fish/functions/nvm.fish b/fish/functions/nvm.fish index 179dc45..4728f0c 100644 --- a/fish/functions/nvm.fish +++ b/fish/functions/nvm.fish @@ -29,7 +29,7 @@ function nvm --description "Node version manager" switch "$cmd" case -v --version - echo "nvm, version 2.2.13" + echo "nvm, version 2.2.14" case "" -h --help echo "Usage: nvm install Download and activate the specified Node version" echo " nvm install Install the version specified in the nearest .nvmrc file" @@ -113,7 +113,7 @@ function nvm --description "Node version manager" echo -e "Fetching \x1b[4m$url\x1b[24m\x1b[7m" end - if ! command curl $silent --progress-bar --location $url | + if ! command curl -q $silent --progress-bar --location $url | command tar --extract --gzip --directory $nvm_data/$ver 2>/dev/null command rm -rf $nvm_data/$ver echo -e "\033[F\33[2K\x1b[0mnvm: Invalid mirror or host unavailable: \"$url\"" >&2