Zsh completion testing
From wikinotes
Interactive
The program does not need to exist to use the completion script.
- Add a directory to your
$fpath
in your~/.zshrc
- Write completer script to this dir, changing
#compdef
to refer to another program- Every save, pop open a new terminal and test.
- 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 ''