From f53c2c8ff5d420714874e6c81107d7cca73c45eb Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Thu, 12 Sep 2024 12:24:30 -0500 Subject: [PATCH] fish: bump nvm.fish to 2.2.15 --- fish/functions/_nvm_list.fish | 3 ++- fish/functions/nvm.fish | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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"