I wanted a simple understandable short non-intrusive solution, and one that works for .nvmrc in the current directory as that's the use-case I have.
.nvmrc
Add this line [ -f .nvmrc ] && nvm use --silent in your ~/.bashrc or ~/.zshrc file.
[ -f .nvmrc ] && nvm use --silent
~/.bashrc
~/.zshrc