How to manage .tool-versions for current directory without storing it in current directory

Viewed 7

I've come to love what asdf does for my onboarding story in projects that i have control over.

However for projects where there is a strange mandate that it must use nvm and must not migrate to asdf for whatever reason, i'd like a way to utilise .tool-versions for certain directories that are unable to have this commited:

maybe something like:

~/.asdf/projects/
  home_me_projects_clientname_projectname.toolversions
  home_me_projects_someotherclientname_projectname.toolversions

then perhaps some kind of direnv magic in my ~/.tool-versions and ~/.direnv that magically picks the right one above depending on what directory i'm in?

anybody else had a need for such a solution?

0 Answers
Related