breadbox completions
breadbox completions <SHELL> [OPTIONS]
Prints a completion script to stdout or writes it to a user location with --install.
| Shell | Value | --install |
|---|---|---|
| Bash | bash | Unix |
| Zsh | zsh | Unix |
| Fish | fish | Unix |
| PowerShell | powershell | Windows |
| Elvish | elvish | Use --path |
| Option | Description |
|---|---|
--install | Write the script instead of printing it. |
--path <PATH> | Use a custom location. Requires --install. |
--force | Overwrite an existing script. Requires --install. |
--dry-run | Show the target and action without writing. Requires --install. |
Install locations
| Shell | Standard 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
fpathline to~/.zshrcbeforecompinit. - 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.