Skip to content

Commit 46586c4

Browse files
authored
Fix regex pattern in _nvm_list to correctly match version directory names (#227)
Update _nvm_list to correctly match version directory names by subtracting $nvm_path Fix #226
1 parent b8edb1e commit 46586c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

functions/_nvm_list.fish

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
function _nvm_list
2-
set --local versions $nvm_data/*
2+
set --local versions (string replace --all -- $nvm_data/ "" $nvm_data/*)
3+
34
set --query versions[1] &&
45
string match --entire --regex -- (string match --regex -- "v\d.+" $versions |
56
string escape --style=regex |

0 commit comments

Comments
 (0)