Skip to content

completions

Generate shell completions for pinprick. Output is written to stdout — redirect it to the location your shell loads completions from.

Terminal window
pinprick completions <SHELL>

<SHELL> is one of: bash, elvish, fish, powershell, zsh.

Terminal window
pinprick completions zsh > ~/.zfunc/_pinprick

Make sure ~/.zfunc is on your fpath and autoload -Uz compinit && compinit runs in your .zshrc.

Terminal window
pinprick completions bash | sudo tee /etc/bash_completion.d/pinprick > /dev/null

Or, without root:

Terminal window
mkdir -p ~/.local/share/bash-completion/completions
pinprick completions bash > ~/.local/share/bash-completion/completions/pinprick
Terminal window
pinprick completions fish > ~/.config/fish/completions/pinprick.fish
Terminal window
pinprick completions powershell | Out-String | Invoke-Expression

For persistent completions, append the output to your PowerShell profile ($PROFILE).

Regenerate completions after every pinprick upgrade — new subcommands and flags are only discoverable through the regenerated file.