# Shell completions

Source: https://zshot-cli.com/reference/shell_completions/
Markdown: https://zshot-cli.com/reference/shell_completions/index.md
Section: [Reference](https://zshot-cli.com/reference/)

ZShot completes flags and their values in bash, zsh, and fish. How the script loads depends on the install.

## APT repository and .deb

The package installs the scripts where each shell loads them, so completions work in the next shell you open:

| Shell | File |
| --- | --- |
| bash | `/usr/share/bash-completion/completions/zshot` |
| zsh | `/usr/share/zsh/vendor-completions/_zshot` |
| fish | `/usr/share/fish/vendor_completions.d/zshot.fish` |

bash loads the script through the `bash-completion` package.

## Homebrew

The cask prints these lines after install. Add the one for your shell to its profile:

```sh
# ~/.bashrc
source <(zshot --completions bash)

# ~/.zshrc, after compinit
source <(zshot --completions zsh)

# ~/.config/fish/config.fish
zshot --completions fish | source
```

## Linux tarball

`share/` in the tarball holds the same three files as the `.deb`. The system install in `INSTALL.txt` copies them under `/usr/share`. When running in place, use the profile lines above with the path to the extracted `zshot`.

## Other shells

[`--completions`](/reference/flags/common/completions) also generates scripts for elvish and powershell.

## Related

Flags:

- [`--completions`](https://zshot-cli.com/reference/flags/common/completions/)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - **Shell completions**
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

