> ## Documentation Index
> Fetch the complete documentation index at: https://www.jetify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# devbox completion zsh

> Generate the autocompletion script for the zsh shell.

If you are using Oh My Zsh, just run the following:

```bash theme={null}
mkdir -p ~/.oh-my-zsh/completions
devbox completion zsh > ~/.oh-my-zsh/completions/_devbox
```

If you are not using Oh My Zsh and shell completion is not already enabled in your environment you
will need to enable it. You can execute the following once:

```bash theme={null}
echo "autoload -U compinit; compinit" >> ~/.zshrc
```

To load completions in your current shell session:

```bash theme={null}
source <(devbox completion zsh); compdef _devbox devbox
```

To load completions for every new session, execute once:

## Linux[​](#linux "Direct link to Linux")

```bash theme={null}
devbox completion zsh > "${fpath[1]}/_devbox"
```

## macOS[​](#macos "Direct link to macOS")

```bash theme={null}
devbox completion zsh > \
  $(brew --prefix)/share/zsh/site-functions/_devbox
```

You will need to start a new shell for this setup to take effect.

```bash theme={null}
devbox completion zsh [flags]
```

## Options[​](#options "Direct link to Options")

| Option              | Description                     |
| ------------------- | ------------------------------- |
| `-h, --help`        | help for zsh                    |
| `--no-descriptions` | disable completion descriptions |
| `-q, --quiet`       | suppresses logs                 |

## SEE ALSO[​](#see-also "Direct link to SEE ALSO")

* [devbox completion](/docs/devbox/cli-reference/devbox-completion/) - Generate the autocompletion
  script for the specified shell

[Edit this page](https://github.com/jetify-com/docs/tree/main/docs/devbox/cli-reference/devbox-completion-zsh/index.mdx)
