Skip to main content

devbox global shellenv

Print shell commands that add global Devbox packages to your PATH

  • To add the global packages to the PATH of your current shell, run the following command:

    . <(devbox global shellenv)
  • To add the global packages to the PATH of all new shells, add the following line to your shell's config file (e.g. ~/.bashrc or ~/.zshrc):

    eval "$(devbox global shellenv)"

Options

OptionDescription
--pureIf this flag is specified, devbox creates an isolated environment inheriting almost no variables from the current environment. A few variables, in particular HOME, USER and DISPLAY, are retained.
-h, --helphelp for shellenv
-q, --quietsuppresses logs

SEE ALSO