Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

breadbox completions

breadbox completions <SHELL> [OPTIONS]

Prints a completion script to stdout or writes it to a user location with --install.

ShellValue--install
BashbashUnix
ZshzshUnix
FishfishUnix
PowerShellpowershellWindows
ElvishelvishUse --path
OptionDescription
--installWrite the script instead of printing it.
--path <PATH>Use a custom location. Requires --install.
--forceOverwrite an existing script. Requires --install.
--dry-runShow the target and action without writing. Requires --install.

Install locations

ShellStandard location
Bash$XDG_DATA_HOME/bash-completion/completions/breadbox, otherwise ~/.local/share/bash-completion/completions/breadbox
Zsh$XDG_DATA_HOME/zsh/site-functions/_breadbox, otherwise ~/.local/share/zsh/site-functions/_breadbox
Fish$XDG_CONFIG_HOME/fish/completions/breadbox.fish, otherwise ~/.config/fish/completions/breadbox.fish
Windows PowerShell%USERPROFILE%\Documents\PowerShell\completions\breadbox.ps1
breadbox completions bash --install
breadbox completions zsh --install --path ~/.zfunc/_breadbox

--install does not edit shell startup files. Breadbox prints any extra setup you need.

  • Bash: enable bash-completion, then restart Bash or source your completion setup.
  • Zsh: add the printed fpath line to ~/.zshrc before compinit.
  • Fish: Fish loads this file automatically.
  • PowerShell on Windows: add the printed dot-source line to your $PROFILE.

Use breadbox completions <SHELL> without --install to print the script, including for Elvish. Re-run the install command after upgrading Breadbox.