Add nvm as a plugin

This commit is contained in:
Gergely POLONKAI
2025-08-08 13:23:32 +02:00
committed by Gergely Polonkai
parent 808ef03273
commit 6834c73fe5
8 changed files with 329 additions and 2 deletions

14
functions/_nvm_list.fish Normal file
View File

@@ -0,0 +1,14 @@
function _nvm_list
set --local versions $nvm_data/*
set --query versions[1] &&
string match --entire --regex -- (
string replace --all -- $nvm_data/ "" $versions |
string match --regex -- "v\d.+" |
string escape --style=regex |
string join "|"
) <$nvm_data/.index
command --all node |
string match --quiet --invert --regex -- "^$nvm_data" && echo system
end