bwrb completion
Generate shell completion scripts for tab completion.
Synopsis
Section titled “Synopsis”bwrb completion <shell>Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
shell | Shell type: bash, zsh, fish |
Installation
Section titled “Installation”Add to ~/.bashrc:
eval "$(bwrb completion bash)"Add to ~/.zshrc:
eval "$(bwrb completion zsh)"Run once to install:
bwrb completion fish > ~/.config/fish/completions/bwrb.fishWhat Gets Completed
Section titled “What Gets Completed”| Context | Completions |
|---|---|
bwrb <TAB> | Commands: new, edit, list, open, etc. |
bwrb list -<TAB> | Options: --type, --path, --where, etc. |
bwrb new <TAB> | Types from your schema |
bwrb list --type <TAB> | Types from your schema |
bwrb list --path <TAB> | Directories in your vault |
- Completions are generated dynamically from your vault’s schema
- Ensure
BWRB_VAULTis set or run from within a vault directory - Restart your shell after adding the completion script
See Also
Section titled “See Also”- Shell completion guide — Detailed setup