devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Devbox shell ignores `.zshenv`

Open alex35mil opened this issue 1 year ago • 0 comments

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

alex35mil avatar May 02 '24 17:05 alex35mil