blob: fb5ab0edbba243f0a3bf7f62ed17be24e271ad0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
function _nvm_list
set --local versions $nvm_data/*
set --query versions[1] &&
string match --entire --regex -- (string match --regex -- "v\d.+" $versions |
string escape --style=regex |
string join "|"
) <$nvm_data/.index
command --all node |
string match --quiet --invert --regex -- "^$nvm_data" && echo system
end
|