Skip to content

zi compinit

Refresh installed completions by re-running the completion system initialization. A convenience wrapper around autoload compinit; compinit.

Terminal window
zi compinit

No arguments.

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.

Terminal window
# After installing new completions, refresh the system
zi creinstall some-user/some-plugin
zi compinit

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.

  • cmd-cdreplay
  • cmd-creinstall
  • cmd-cclear