Skip to main content
Generates shell completion scripts that enable tab completion for zerobrew commands, subcommands, and options.

Usage

Arguments

string
required
The shell for which to generate completions. Supported shells:
  • bash - Bourne Again Shell
  • zsh - Z Shell
  • fish - Friendly Interactive Shell
  • powershell - PowerShell
  • elvish - Elvish Shell

Examples

Generate bash completions

Generate zsh completions

Generate fish completions

Generate PowerShell completions

Installation

For detailed setup instructions for each shell, including how to install and activate completions, see the Shell Completion Guide.

What Gets Completed

The completion scripts provide intelligent tab completion for:
  • Commands: install, uninstall, bundle, list, info, etc.
  • Subcommands: bundle install, bundle dump
  • Flags: --no-link, --build-from-source, --force, etc.
  • Formula names: Based on available Homebrew formulas
  • File paths: For commands that accept file arguments