Supported Shells
Completion is available for:- bash
- zsh
- fish
- powershell (Windows)
- elvish
Installing Completion
Use thezb completion command to generate completion scripts for your shell.
Bash
Alternative: Source directly in .bashrc
Add to your~/.bashrc:
Zsh
Update .zshrc
Add the completion directory to your If you don’t have
fpath before compinit in ~/.zshrc:compinit yet, add:Alternative: Oh My Zsh users
If you use Oh My Zsh:Fish
Reload completions
Fish automatically loads completions from
~/.config/fish/completions/. Start a new shell or run:PowerShell (Windows)
Add to your PowerShell profile:Elvish
Add to your~/.elvish/rc.elv:
What Gets Completed
The completion scripts provide suggestions for:Commands
Subcommands
Flags and options
File paths
Updating Completions
When you update zerobrew, regenerate completion scripts to get completions for new commands:Troubleshooting
Completions not working in bash
Ensurebash-completion is installed:
~/.bashrc sources it:
Completions not working in zsh
Verifycompinit is being called:
fpath modifications:
Completions not working in fish
Verify the file exists:Completion file permissions
Ensure completion files are readable:Manual Completion
If you prefer not to install completions permanently, you can source them temporarily:Related Commands
zb --help- View all available commandszb <command> --help- View help for a specific command