Skip to content

Completion Commands

Enable tab completion for bash, zsh, or fish shells.

Supported Shells

ShellConfig File
bash~/.bashrc
zsh~/.zshrc
fish~/.config/fish/config.fish

bb completion install

Install shell completions for your current shell.

Terminal window
bb completion install

The installer auto-detects your shell and adds the necessary configuration.

Post-Installation

After installing, restart your shell or source your config:

Terminal window
# Bash
source ~/.bashrc
# Zsh
source ~/.zshrc
# Fish
source ~/.config/fish/config.fish

Examples

Terminal window
# Install completions
bb completion install
# Test it works
bb <Tab> # Shows: auth, repo, pr, config, completion
bb repo <Tab> # Shows: clone, create, list, view, delete

bb completion uninstall

Remove shell completions.

Terminal window
bb completion uninstall

Examples

Terminal window
# Remove completions
bb completion uninstall

What 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

Terminal window
$ 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