mise icon indicating copy to clipboard operation
mise copied to clipboard

Automatically install tools when cd to a folder with config files

Open smikheiev opened this issue 1 year ago • 4 comments

Is there a way to automatically install tools (node, ruby, python, etc) when cd to a folder with .rtx.toml or .nvmrc or other configuration files? something like this in nvm.

If it's not possible to do it now, do you think it's a good idea to add such a feature?

smikheiev avatar Aug 17 '23 06:08 smikheiev

I believe you can set RTX_MISSING_RUNTIME_BEHAVIOR=autoinstall, however I've removed this from the documentation and I'm unsure if it's something I want to continue supporting forever.

jdx avatar Aug 18 '23 18:08 jdx

thanks @jdx!

I'm unsure if it's something I want to continue supporting forever

is there a reason for this? seems like a useful feature 🤔

smikheiev avatar Sep 13 '23 12:09 smikheiev

--yes is a more elegant solution to most of what RTX_MISSING_RUNTIME_BEHAVIOR did—though it doesn't handle this exact use-case.

jdx avatar Sep 13 '23 12:09 jdx

RTX_MISSING_RUNTIME_BEHAVIOR just adds a lot of complexity to the codebase for little benefit when --yes is available

jdx avatar Sep 13 '23 12:09 jdx

with the new not_found handler I feel this probably isn't necessary anymore

jdx avatar Jan 07 '24 07:01 jdx