How to configure my shell so that nvm use
run automatically every time there\'s a .nvmrc file on the directory and use the latest version or a global config whe
I tried many solutions for this and nothing worked the way I wanted, so I wrote my own:
ZSH function to auto-switch to correct Node version
As far as I know, this is the only one that meets all the following criteria:
.nvmrc
(just like nvm use
);.nvmrc
format;.nvmrc
,default
if there is no .nvmrc
anywhere up the tree;