From 5c79be7abdd85b9abcd724f79bec1945ab1f785e Mon Sep 17 00:00:00 2001 From: Hugo Marotta Date: Sat, 15 Aug 2026 17:37:22 -0300 Subject: [PATCH 1/3] Update bash/zsh command to activate devbox global --- internal/boxcli/global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/boxcli/global.go b/internal/boxcli/global.go index d1fb27f3ddd..3438f7756dc 100644 --- a/internal/boxcli/global.go +++ b/internal/boxcli/global.go @@ -115,7 +115,7 @@ func ensureGlobalEnvEnabled(cmd *cobra.Command, args []string) error { Add the following line to your shell's rcfile and restart your shell: For bash/zsh (~/.bashrc or ~/.zshrc): - eval "$(devbox global shellenv)" + eval "$(devbox global shellenv --init-hook)" For nushell: See NUSHELL.md for setup instructions `, From 5caba7e36423b6272a045024245c7271d9cd5468 Mon Sep 17 00:00:00 2001 From: Hugo Marotta Date: Sat, 15 Aug 2026 17:43:04 -0300 Subject: [PATCH 2/3] Add fish command to activate devbox global --- internal/boxcli/global.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/boxcli/global.go b/internal/boxcli/global.go index 3438f7756dc..72609373779 100644 --- a/internal/boxcli/global.go +++ b/internal/boxcli/global.go @@ -117,6 +117,9 @@ Add the following line to your shell's rcfile and restart your shell: For bash/zsh (~/.bashrc or ~/.zshrc): eval "$(devbox global shellenv --init-hook)" +For fish (~/.config/fish/config.fish): + devbox global shellenv --init-hook | source + For nushell: See NUSHELL.md for setup instructions `, ) From e28011ab821f7b37c48bbfb92c6d3baeff1545da Mon Sep 17 00:00:00 2001 From: Hugo Marotta Date: Sat, 15 Aug 2026 18:07:56 -0300 Subject: [PATCH 3/3] Add nushell command to activate devbox global --- internal/boxcli/global.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/boxcli/global.go b/internal/boxcli/global.go index 72609373779..7601ea03209 100644 --- a/internal/boxcli/global.go +++ b/internal/boxcli/global.go @@ -120,7 +120,14 @@ For bash/zsh (~/.bashrc or ~/.zshrc): For fish (~/.config/fish/config.fish): devbox global shellenv --init-hook | source -For nushell: See NUSHELL.md for setup instructions +For nushell (~/.config/nushell/env.nu): + devbox global shellenv --format nushell --preserve-path-stack -r + | lines + | parse "$env.{name} = \"{value}\"" + | where name != null + | transpose -r + | into record + | load-env `, ) }