Description
In my quest to try and have a clean root for my project, I have moved most of my config files to a config
folder. I was able to do so because I could specify to the various tools that their config file was located there via a CLI option like --config <path>
.
nvm
does not provide a way to set such path. It would be handy to be able to run something like nvm use --config config/nvm
or nvm use -c config/nvm
and read the given file like it would read .nvmrc
.
To further expand, one could put a .nvmrc
file in a folder—say config
—such that when the -c
option is used by just giving the path to a folder, like nvm use -c config
, it would look for a .nvmrc
in that folder. Or, even better in my opinion, have it search for more than just /.nvmrc
(personal taste, ./config/nvm/config
would be the best).