diff --git a/docs/devbox/devbox-global/index.mdx b/docs/devbox/devbox-global/index.mdx index 2897955..01d02bc 100644 --- a/docs/devbox/devbox-global/index.mdx +++ b/docs/devbox/devbox-global/index.mdx @@ -103,6 +103,20 @@ Add the following command to your `~/.config/fish/config.fish` file: devbox global shellenv --init-hook | source ``` +### Nushell[](#nushell "Direct link to Nushell") + +Add the following command to your `~/.config/nushell/env.nu` file: + +```bash +devbox global shellenv --format nushell --preserve-path-stack -r +| lines +| parse "$env.{name} = \"{value}\"" +| where name != null +| transpose -r +| into record +| load-env +``` + ## Sharing Your Global Config with Git[​](#sharing-your-global-config-with-git "Direct link to Sharing Your Global Config with Git") You can use Git to synchronize your `devbox global` config across multiple machines using