diff --git a/fish/functions/_nvm_list.fish b/fish/functions/_nvm_list.fish index fb5ab0e..a17e1a9 100644 --- a/fish/functions/_nvm_list.fish +++ b/fish/functions/_nvm_list.fish @@ -1,5 +1,6 @@ function _nvm_list - set --local versions $nvm_data/* + set --local versions (string replace --all -- $nvm_data/ "" $nvm_data/*) + set --query versions[1] && string match --entire --regex -- (string match --regex -- "v\d.+" $versions | string escape --style=regex | diff --git a/fish/functions/nvm.fish b/fish/functions/nvm.fish index 4728f0c..d7cee05 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.14" + echo "nvm, version 2.2.15" 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"