Skip to content

zi cclear

Clear stray and improper completions from Zinit’s completions directory. Use this to fix broken or dangling completion symlinks.

Terminal window
zi cclear

No arguments.

Removes completion symlinks in $ZINIT[COMPLETIONS_DIR] that point to files which no longer exist (dangling symlinks) or that are otherwise invalid. This is a maintenance command that keeps the completions directory tidy. After running it, use zi creinstall on affected plugins to restore their completions.

Terminal window
# Clean up stray completions
zi cclear
  • cmd-completions
  • cmd-creinstall
  • cmd-csearch