zi compinit
Summary
Section titled “Summary”Refresh installed completions by re-running the completion system initialization. A convenience wrapper around autoload compinit; compinit.
Syntax / Usage
Section titled “Syntax / Usage”zi compinitNo arguments.
Details
Section titled “Details”Calls autoload -Uz compinit; compinit to reinitialize the Zsh completion system. This rebuilds the completion cache (.zcompdump) and makes any newly installed completions available without starting a new shell. Equivalent to the zicompinit helper function used inside ice hooks. Use this interactively after installing new completions with zi creinstall.
Examples
Section titled “Examples”# After installing new completions, refresh the systemzi creinstall some-user/some-pluginzi compinitCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”Running compinit multiple times in a session has a performance cost. For Turbo mode setups, prefer calling zicompinit inside an atinit or atload hook on the last completion-related plugin rather than calling this command interactively.
See Also
Section titled “See Also”- cmd-cdreplay
- cmd-creinstall
- cmd-cclear