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
[easy] added env variable to distinguish pure shell (#2024)
## Summary
`devbox shell` and `devbox shell --pure` have differences in inheriting
the host shell's env variables. But there is no devbox-defined env
variable for users and devbox itself to know if it is in a pure shell or
regular shell.
This PR sets a `DEVBOX_PURE_SHELL=1` env variable to help fix that
issue.
This will allow users to differentiate and customize their setup based
on if they're in a pure shell or not. For example, not sourcing
`.bashrc` if in a pure shell.
## How was it tested?
- `devbox run build`
- `devbox shell` then `env | grep "DEVBOX_PURE_SHELL"`
- exit
- `devbox shell --pure` then `env | grep "DEVBOX_PURE_SHELL"`
- confirm the env variable is set for pure shell and not for regular
shell.
0 commit comments