[fix] Remove some redundant stuff and add stuff for macos

This commit is contained in:
Uttarayan Mondal
2022-11-21 16:30:05 +05:30
parent 9f1af0fe14
commit 01c1b052ca
23 changed files with 576 additions and 35 deletions

View File

@@ -0,0 +1,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