Skip to main content
The infraudit CLI can generate tab-completion scripts for bash, zsh, fish, and PowerShell. Once enabled, pressing Tab completes command names, subcommands, and flags automatically.

Setup

Load completion for the current session only:
source <(infraudit completion bash)
To enable completion permanently, write the script to your bash completions directory:
infraudit completion bash > /etc/bash_completion.d/infraudit
On some systems the completions directory may be /usr/local/etc/bash_completion.d/ instead. Run pkg-config --variable=completionsdir bash-completion to find the correct path.

Applying changes

After writing a permanent completion file, reload your shell configuration or open a new terminal session:
source ~/.bashrc
Fish and PowerShell pick up new completion files automatically when you open a new session.