-
Notifications
You must be signed in to change notification settings - Fork 288
Closed
Labels
Description
What problem are you trying to solve?
When using devbox with git worktrees and switching between worktrees while in a devbox shell, the environment breaks:
cd ~/projects/myapp && devbox shell
wt switch feature-a # switches to ~/projects/myapp.feature-a/
which node # empty - PATH is broken
devbox shell # Error: Shell inception is not supportedThe only fix is `exit` then `devbox shell` again.
What solution would you like?
A way to refresh the environment without exiting:
devbox refresh # or: devbox shell --reinit This would re-source the devbox environment from the current directory's devbox.json.
Alternatives you've considered
Currently doing it manually, but its very annoying
Environment
- devbox version: 0.16.0
- OS: Nixos 25.11
- Shell: bash