zi light
Summary
Section titled “Summary”Load a plugin without reporting or investigation for maximum performance. Use this for trusted plugins where you do not need Zinit to track their side effects.
Syntax / Usage
Section titled “Syntax / Usage”zi light [-b] {plg-spec}-b— investigatebindkeycalls only, even though full investigation is disabled. Equivalent to thetrackbindsice modifier.
Details
Section titled “Details”light clones and sources the plugin the same way load does but skips all instrumentation. No report data is collected, so zi report and zi unload will not work for plugins loaded this way. This makes startup faster, especially for plugins that register many aliases or functions. The light-mode ice modifier achieves the same effect when using the for-syntax where no explicit load/light subcommand is written.
Examples
Section titled “Examples”# Fast load without investigationzi light zsh-users/zsh-autosuggestionszi light zdharma-continuum/fast-syntax-highlighting
# Track only bindkeys (for remapping with bindmap'')zi light -b some-user/some-plugin
# Via for-syntax with light-mode icezinit for \ light-mode \ zsh-users/zsh-autosuggestions \ light-mode \ zdharma-continuum/fast-syntax-highlightingCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”Because no unload data is collected, zi unload will silently do nothing for plugins loaded with light. Switch to zi load if you need to be able to unload a plugin at runtime.
See Also
Section titled “See Also”- cmd-load
- cmd-snippet
- cmd-ice