system-completions
Summary
Section titled “Summary”Brings the stock Zsh system completions (the ones shipped with your installed Zsh version) under zinit’s control, making them manageable and reloadable via zinit commands.
Syntax / Usage
Section titled “Syntax / Usage”zi pack for system-completionsOne profile: default.
Details
Section titled “Details”- Provides: system Zsh completion functions registered with zinit via
zinit creinstall; non-completion functions copied to$ZPFX/funsand added tofpath. - Profile ices:
git,as"completion",nocompile,lucid,run-atpull,atclone(copies non-_*functions from$ZPFX/share/zsh/$ZSH_VERSION/functions/to$ZPFX/funs; runszinit creinstall -q $ZPFX/share/zsh/$ZSH_VERSION/functions),atpull"%atclone",atload(removes system zsh fpath entries and re-adds$ZPFX/funs). run-atpullensures theatclonehook runs on everyzi update, keeping completions in sync after a Zsh upgrade.- This package does not clone any external repo — it operates on the already-installed system Zsh files.
Examples
Section titled “Examples”zi pack for system-completionsCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- If
$ZPFX/share/zsh/$ZSH_VERSION/functions/does not exist (e.g. Zsh installed outside$ZPFX), theatclonehook silently copies nothing.
See Also
Section titled “See Also”- pkg-overview — how
zi packworks