cli → zoo

zoo completion

Generate shell completion scripts.


The shell type
Possible values: bash | elvish | fish | powershell | zsh
Default value: bash
Print debug info
Default value: false
Print help (see a summary with '-h')


When installing zoo CLI through a package manager, it's possible that no additional shell configuration is necessary to gain completion support. For Homebrew, see

If you need to set up completions manually, follow the instructions below. The exact config file locations might vary based on your system. Make sure to restart your shell before testing whether completions are working.


First, ensure that you install bash-completion using your package manager.

After, add this to your ~/.bash_profile:

eval "$(zoo completion -s bash)"


Generate a _zoo completion script and put it somewhere in your $fpath:

zoo completion -s zsh > /usr/local/share/zsh/site-functions/_zoo

Ensure that the following is present in your ~/.zshrc:

autoload -U compinit
compinit -i

Zsh version 5.7 or later is recommended.


Generate a completion script:

zoo completion -s fish > ~/.config/fish/completions/


Open your profile script with:

mkdir -Path (Split-Path -Parent $profile) -ErrorAction SilentlyContinue
notepad $profile

Add the line and save the file:

Invoke-Expression -Command $(zoo completion -s powershell | Out-String)