Files
nvm-auto-use.fish/functions/nvm_find_nvmrc.fish
2025-02-23 19:20:51 +02:00

12 lines
185 B
Fish

function nvm_find_nvmrc
set -l dir (pwd)
while test "$dir" != "/"
if test -f "$dir/.nvmrc"
echo "$dir/.nvmrc"
return
end
set dir (dirname "$dir")
end
end