zi cdclear
Summary
Section titled “Summary”Clear the list of intercepted compdef calls, discarding any completions captured so far. Use this to ignore completions registered by plugins loaded before this point.
Syntax / Usage
Section titled “Syntax / Usage”zi cdclear [-q]-q— quiet, suppress output.
Details
Section titled “Details”Empties the array that holds intercepted compdef calls. Any completions captured up to this point will not be replayed by zi cdreplay. This is the recommended approach when migrating from Oh My Zsh and you want to ignore the completions provided by OMZ plugins (e.g., the git plugin) while keeping completions from plugins loaded afterward. The zicdclear function is the hook-safe equivalent for use inside atload or atinit ices.
Examples
Section titled “Examples”# Load OMZ git plugin but discard its completionszi snippet OMZL::git.zshzi snippet OMZP::gitzi cdclear -q # forget completions from above
# Continue loading other plugins whose completions you DO wantzi load some/other-pluginautoload -Uz compinitcompinitzi cdreplay -qSee Also
Section titled “See Also”- cmd-cdreplay
- cmd-cdlist