Skip to content

zi cdlist

Show the list of compdef calls that have been intercepted and are waiting to be replayed. Use this to inspect what completions have been captured before compinit ran.

Terminal window
zi cdlist

No arguments.

Displays the contents of the array where Zinit stores intercepted compdef calls. Each entry is a compdef invocation recorded before compinit was available. This is a read-only inspection command — it does not execute or clear the list. Useful for debugging missing completions or verifying that specific plugins’ compdef calls were captured correctly.

Terminal window
# Inspect captured compdefs after loading plugins
zi snippet OMZP::git
zi cdlist # see what git plugin registered
  • cmd-cdreplay
  • cmd-cdclear