jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.84k stars 188 forks source link

Devbox shell ignores `.zshenv` #2035

Open alex35mil opened 2 months ago

alex35mil commented 2 months ago

What happened?

In my .zshenv, I have this:

eval "$(devbox global shellenv --init-hook)"
source "$HOME/.cargo/env"

# also setting some env vars... 

When I open a general shell, everything is ok. But when I hop into devbox shell, it doesn't source .zshenv.

PS I use direnv to autoload devbox.

Steps to reproduce

  1. Create .zshenv and set some env var.
  2. Hop into devbox shell.
  3. Env var is not set.

Command

shell

devbox.json

No response

Devbox version

0.10.6

Nix version

2.18.1

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response