You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Updated .envrc template to make it simpler and also future proof. So
that if the contents of `use devbox` function changes in the future, we
won't have mismatch between devbox binary and user's `.envrc` file.
Added `--envrc` flag to `devbox generate direnv` so that it outputs the
content of `use devbox` function.
Without the flag, the command generates the following:
```
# Automatically sets up your devbox environment whenever you cd into this
# directory via our direnv integration:
eval $(devbox generate direnv --envrc)
Note: this needs a follow up PR for updating the docs in regards to direnv integration.
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
# for more details
```
## How was it tested?
- compile
- in a new directory run `devbox generate direnv` (answer No to the
prompt)
- update the .envrc file and change `devbox generate ...` to `./devbox
generate` (so that it uses the compiled binary).
- cd out of directory and back in to check if direnv works as expected.
0 commit comments