diff --git a/functions/_nvm_list.fish b/functions/_nvm_list.fish index fb5ab0e..a17e1a9 100644 --- a/functions/_nvm_list.fish +++ b/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 |