hitspec completion
Generate a shell completion script so hitspec can tab-complete commands, flags,
and arguments.
hitspec completion <shell>
<shell> is one of bash, zsh, fish, or powershell. The command prints the
script to stdout; redirect or source it as shown below.
Setup
Load completions for the current session:source <(hitspec completion bash)
Load them for every session:# Linux
hitspec completion bash > /etc/bash_completion.d/hitspec
# macOS (Homebrew)
hitspec completion bash > $(brew --prefix)/etc/bash_completion.d/hitspec
Bash completions require the bash-completion package to be installed.
If completion isn’t already enabled, add this once to ~/.zshrc:echo "autoload -U compinit; compinit" >> ~/.zshrc
Then install the completion (start a new shell afterward):hitspec completion zsh > "${fpath[1]}/_hitspec"
Load completions for the current session:hitspec completion fish | source
Load them for every session:hitspec completion fish > ~/.config/fish/completions/hitspec.fish
Load completions for the current session:hitspec completion powershell | Out-String | Invoke-Expression
To load them for every session, add the line above to your PowerShell profile.
If you installed hitspec with Homebrew, completions for the shells Homebrew
manages are typically wired up automatically.