Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions internal/boxcli/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,19 @@ 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)"

For nushell: See NUSHELL.md for setup instructions
eval "$(devbox global shellenv --init-hook)"

For fish (~/.config/fish/config.fish):
devbox global shellenv --init-hook | source

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
`,
)
}
Expand Down