Zsh completion testing

From wikinotes

Interactive

The program does not need to exist to use the completion script.

  1. Add a directory to your $fpath in your ~/.zshrc
  2. Write completer script to this dir, changing #compdef to refer to another program
  3. Every save, pop open a new terminal and test.
  4. Rinse, Lather, Repeat

Show Completion Info

# enable most completion info
# https://unix.stackexchange.com/questions/214657/what-does-zstyle-do

zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format "$fg[yellow]%B--- %d%b"
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format "$fg[red]No matches for:$reset_color %d"
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''