Skip to main content

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 you installed hitspec with Homebrew, completions for the shells Homebrew manages are typically wired up automatically.