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:
.envrc
file themselves. We could add a command to generate it in the repo, or have it created on devbox init
.Thoughts?
With the recent PRs merging devbox init
will automatically prompt for generating and activating a .envrc
file.
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 .envrc
file).
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.
Owner Name | jetpack-io |
Repo Name | devbox |
Full Name | jetpack-io/devbox |
Language | Go |
Created Date | 2022-08-18 |
Updated Date | 2023-03-31 |
Star Count | 4960 |
Watcher Count | 19 |
Fork Count | 68 |
Issue Count | 42 |
Issue Title | Created Date | Updated Date |
---|