Devbox global shellenv slows down shell startup
dudicoco opened this issue · comments
dudicoco commented
What happened?
Adding eval "$(devbox global shellenv)"
to my .zshrc
causes adds almost half a second to my shell startup time.
Is this command making network calls? I am not sure why or how this command takes so long to complete.
Steps to reproduce
~ > time zsh -i -c exit
zsh -i -c exit 0.02s user 0.02s system 46% cpu 0.098 total
- Add
eval "$(devbox global shellenv)"
to.zshrc
~ > time zsh -i -c exit
zsh -i -c exit 0.10s user 0.10s system 37% cpu 0.545 total
Command
global
devbox.json
No response
Devbox version
0.9.1
Nix version
nix (Nix)2.16.1
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
No response