fnm icon indicating copy to clipboard operation
fnm copied to clipboard

`.nvmrc` in parent directories aren't read

Open gubikmic opened this issue 1 year ago • 3 comments

.nvmrc in parent directories aren't read

Similar issue in nvm.fish: https://github.com/jorgebucaran/nvm.fish/issues/45

gubikmic avatar Apr 26 '23 02:04 gubikmic

https://github.com/Schniz/fnm/blob/master/docs/commands.md

See --version-file-strategy option.

alexeyten avatar Apr 26 '23 07:04 alexeyten

Got this working by adding the following to my .zshrc as @alexeyten suggested.

eval "$(fnm env --use-on-cd --version-file-strategy recursive)"

nerdyman avatar May 14 '23 12:05 nerdyman

eval "$(fnm env --use-on-cd --version-file-strategy recursive)"

This should be documented in the README file

Yihao-G avatar Oct 04 '23 23:10 Yihao-G