Completion Commands
Enable tab completion for bash, zsh, or fish shells.
Supported Shells
| Shell | Config File |
|---|---|
| bash | ~/.bashrc |
| zsh | ~/.zshrc |
| fish | ~/.config/fish/config.fish |
bb completion install
Install shell completions for your current shell.
bb completion installThe installer auto-detects your shell and adds the necessary configuration.
Post-Installation
After installing, restart your shell or source your config:
# Bashsource ~/.bashrc
# Zshsource ~/.zshrc
# Fishsource ~/.config/fish/config.fishExamples
# Install completionsbb completion install
# Test it worksbb <Tab> # Shows: auth, repo, pr, config, completionbb repo <Tab> # Shows: clone, create, list, view, deletebb completion uninstall
Remove shell completions.
bb completion uninstallExamples
# Remove completionsbb completion uninstallWhat Gets Completed
Tab completion works for:
- Commands:
auth,repo,pr,config,completion - Subcommands:
login,clone,create,list, etc. - Options:
--json,--workspace,--repo,--help
Example Session
$ bb pr<Tab>pr
$ bb pr <Tab>approve checkout create decline list merge view
$ bb pr create --<Tab>--body --destination --repo--close-source-branch --help --source--title --workspace