Skip to content

Commit

Permalink
Fix unexpanded glob issue in _nvm_list (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebucaran committed Sep 14, 2024
1 parent 51d9702 commit 2d16bae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions functions/_nvm_list.fish
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
function _nvm_list
set --local versions (string replace --all -- $nvm_data/ "" $nvm_data/*)
set --local versions $nvm_data/*

set --query versions[1] &&
string match --entire --regex -- (string match --regex -- "v\d.+" $versions |
string match --entire --regex -- (
string replace --all -- $nvm_data/ "" $versions |
string match --regex -- "v\d.+" |
string escape --style=regex |
string join "|"
) <$nvm_data/.index
Expand Down

0 comments on commit 2d16bae

Please sign in to comment.