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.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
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.
The .NET Generic Host transforms simple console apps into configurable, maintainable services. Learn how to use it for CLI tools with dependency injection, logging, and graceful shutdown handling.
Deno's default‑deny model forces you to declare exactly what a CLI may read, write, or connect to. This post shows minimal flags in deno.json, runtime permission requests, and turning denials into deterministic CI checks—while noting path‑based limits.
Stop manually exporting icons. Learn how to use the Inkscape CLI to automate batch SVG-to-PNG conversions, handle multi-resolution assets, and use actions for reproducible design pipelines.
Stop guessing CLI flags. Learn how to use Zsh's _arguments utility and fpath to create custom, declarative tab-completions for your internal tools.
Learn how to use Zsh's compdef and _arguments to create custom tab‑completions for your CLI tools, moving beyond simple file suggestions to professional flag and argument hints.
Learn how to implement custom Zsh completion functions using _arguments and _describe to provide intelligent Tab-completion for internal CLI tools.