What are your thoughts on automatically starting a devbox shell when you enter a directory that contains a "devbox.json" file, then closes the shell when you leave that directory? Similar to how https://github.com/cachix/devenv does it?
@nbish11 We currently have a direnv integration that can automatically update your path with your Devbox packages.
I think your feature request would make 2 changes to this workflow:
.envrcfile themselves. We could add a command to generate it in the repo, or have it created on
With the recent PRs merging
devbox init will automatically prompt for generating and activating a
To clarify, the generated
.envrc file will not initialize a shell because there are complications with that (you can try for yourself by modifying the
Right now the file updates the PATH so that when you cd into a directory, the devbox installed packages are in the path. That way, even though you're not in a devbox shell, you can use the packages that are installed in devbox.
We're working on simplifying and improving the way we create the shell environment. Once finished, we'll update the generated
.envrc to create a very similar environment to devbox shell.
|Issue Title||Created Date||Updated Date|