Blog141.5K views3,403 votes0 replies4,299 following
Writing a Zsh completion for a custom CLI without slowing your shell
Zsh completions are shell functions registered with compdef and loaded from fpath. Use _arguments for declarative options and cache dynamic lookups to avoid shell lag.