shellfirm completions
Generate shell completion scripts
The completions command generates tab completion scripts for your shell, enabling autocomplete for shellfirm commands, subcommands, and flags.
Usage
shellfirm completions <SHELL>
Arguments
| Argument | Description |
|---|---|
SHELL | Target shell: zsh, bash, fish, powershell, elvish |
Setup
Zsh
shellfirm completions zsh > ~/.shellfirm-completions.zsh
echo 'source ~/.shellfirm-completions.zsh' >> ~/.zshrc
source ~/.zshrc
Or add to your fpath:
shellfirm completions zsh > "${fpath[1]}/_shellfirm"
Bash
shellfirm completions bash > ~/.shellfirm-completions.bash
echo 'source ~/.shellfirm-completions.bash' >> ~/.bashrc
source ~/.bashrc
Or install system-wide:
shellfirm completions bash > /etc/bash_completion.d/shellfirm
Fish
shellfirm completions fish > ~/.config/fish/completions/shellfirm.fish
Fish loads completions from this directory automatically.
PowerShell
shellfirm completions powershell >> $PROFILE
Restart PowerShell to load.
Elvish
shellfirm completions elvish >> ~/.config/elvish/rc.elv
Restart Elvish to load.
What gets completed
- Subcommands:
shellfirm <TAB>-- init, config, check, policy, audit, status, mcp, wrap, completions - Flags:
shellfirm check --<TAB>-- --command, --test, --json - Shell names:
shellfirm init <TAB>-- zsh, bash, fish, nushell, powershell, elvish, xonsh, oils
Example
$ shellfirm <TAB>
audit check completions config init mcp policy status wrap
$ shellfirm check --<TAB>
--command --json --test