completions
Generate shell completion scripts for bobbin.
Synopsis
bobbin completions <SHELL>
Description
The completions command outputs a shell completion script to stdout. Pipe the output to the appropriate file for your shell to enable tab-completion for all bobbin commands, subcommands, and options.
Supported shells: bash, zsh, fish, elvish, powershell.
Arguments
| Argument | Description |
|---|---|
<SHELL> | Shell to generate completions for (required) |
Setup
Bash
bobbin completions bash > ~/.local/share/bash-completion/completions/bobbin
Or for the current session only:
source <(bobbin completions bash)
Zsh
bobbin completions zsh > ~/.zfunc/_bobbin
Make sure ~/.zfunc is in your $fpath (add fpath=(~/.zfunc $fpath) to ~/.zshrc before compinit).
Fish
bobbin completions fish > ~/.config/fish/completions/bobbin.fish
Elvish
bobbin completions elvish > ~/.config/elvish/lib/bobbin.elv
PowerShell
bobbin completions powershell > $HOME\.config\powershell\bobbin.ps1
# Add to your $PROFILE: . $HOME\.config\powershell\bobbin.ps1
See Also
- Installation — installing bobbin
- CLI Overview — all available commands