Automatic Shell Activation
You can configure
devenv to seamlessly switch development environments when navigating between project directories.
This feature relies on a separate tool called direnv (not to be confused with devenv).
Once installed, you'll see a warning in your shell the next time you enter the project directory:
direnv allow to enable the environment. It'll now be automatically loaded and unloaded whenever you enter and exit the project directory.
$ cd /home/user/myproject/ direnv: loading ~/myproject/.envrc Building shell ... Entering shell ... (devenv) $
If you'd like to use direnv and have your prompt be aware of it, we recommend installing Starship.