mirror of
https://github.com/ivuorinen/nvm-auto-use.fish.git
synced 2026-02-09 22:48:41 +00:00
12 lines
185 B
Fish
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
|
|
|