mdBook
Summary
Section titled “Summary”Installs mdbook (a Markdown-to-book tool similar to Gitbook) from a GitHub release binary and generates its Zsh completion file on clone.
Syntax / Usage
Section titled “Syntax / Usage”zi for \ as'completions' \ atclone'mdbook completions zsh > _mdbook' \ sbin \ @rust-lang/mdBookDetails
Section titled “Details”as'completions'— marks the plugin as providing a completion file rather than a script to source.atclone'mdbook completions zsh > _mdbook'— generates the_mdbookZsh completion file after the initial download.sbin— creates a shim for the binary with the name derived from the repository (requireszinit-annex-bin-gem-node).
Note: from'gh-r' is not explicitly set here; Zinit defaults to GitHub. The release binary must already be present in the plugin directory for mdbook completions to run; ensure the binary is in the downloaded archive.
The annex zdharma-continuum/zinit-annex-bin-gem-node must be loaded before this recipe.
Examples
Section titled “Examples”# prerequisite — load once at the top of .zshrczinit light-mode for zdharma-continuum/zinit-annex-bin-gem-node
zi for \ as'completions' \ atclone'mdbook completions zsh > _mdbook' \ sbin \ @rust-lang/mdBook