Shell completions

tofa completions <shell> prints completions to stdout. Install them once and forget.

zsh

mkdir -p ~/.zsh/completions
tofa completions zsh > ~/.zsh/completions/_tofa

Add to ~/.zshrc (if not already there):

fpath=(~/.zsh/completions $fpath)
autoload -Uz compinit && compinit

bash

tofa completions bash > /usr/local/etc/bash_completion.d/tofa

fish

tofa completions fish > ~/.config/fish/completions/tofa.fish

powershell

tofa completions powershell | Out-String | Invoke-Expression

(Add the same line to your PowerShell profile to persist.)

See also

tofa completions — flag reference.