default-ice
Summary
Section titled “Summary”default-ice adds a zinit default-ice subcommand that sets persistent default ices applied automatically to all subsequent zinit invocations, reducing repetition when loading groups of plugins with shared options.
Details
Section titled “Details”-
Problem it solves: When loading multiple plugins that all need the same ices (e.g.,
lucid from"gh-r"), you’d have to repeat those ices on every call.default-icelets you declare them once. -
New subcommand:
zinit default-icewith options:ice1'value1' ice2'value2' …— set the given ices as defaults--show/-s— display the currently active default ices--clear/-c— reset all default ices--get/-g— return current ices in the$Replyhash--quiet/-q— suppress output--stats/-t— show statistics
-
Limitation: The
wait''ice cannot be set as a default via this subcommand. -
Install:
Terminal window zinit light zdharma-continuum/zinit-annex-default-ice
Examples
Section titled “Examples”# Set defaults once, then load multiple plugins without repeating iceszinit default-ice lucid from"gh-r"
zinit wait for \ sbin junegunn/fzf-bin \ sbin"**/pk" peco/peco
# Show what defaults are activezinit default-ice --show
# Clear defaults when donezinit default-ice --clearCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”wait''cannot be made a default ice — it must be specified per plugin.- Default ices persist for all subsequent
zinitcalls in the session or until--clearis run; clear them explicitly after a batch load to avoid unintended effects.