Skip to content

Shell Completion

quinectl completion <shell> prints a completion script, so the Tab key completes quinectl's commands and flags. Each suggestion shows a short description; add --no-descriptions for names only.

If completion isn't enabled in your zsh yet, enable it once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

Then install the script. On macOS with Homebrew:

quinectl completion zsh > "$(brew --prefix)/share/zsh/site-functions/_quinectl"

On Linux, the first directory on zsh's function path usually belongs to root and may not exist yet:

sudo mkdir -p "${fpath[1]}"
quinectl completion zsh | sudo tee "${fpath[1]}/_quinectl" > /dev/null

The script needs the bash-completion package. On macOS with Homebrew:

quinectl completion bash > "$(brew --prefix)/etc/bash_completion.d/quinectl"

On Linux:

sudo mkdir -p /etc/bash_completion.d
quinectl completion bash | sudo tee /etc/bash_completion.d/quinectl > /dev/null

Write the script to fish's completions directory:

quinectl completion fish > ~/.config/fish/completions/quinectl.fish

Add this line to your PowerShell profile:

quinectl completion powershell | Out-String | Invoke-Expression

Start a new shell for the change to take effect. To try it in the current shell only, load it directly, for example source <(quinectl completion zsh).

The script asks quinectl for its commands and flags each time you press Tab, so new ones complete after an upgrade without installing it again.

Next steps