Skip to content

A way to refresh devbox shell #2756

@Nikola-Milovic

Description

@Nikola-Milovic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requesttriageIssue needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions