subscribe / on-update-of
Summary
Section titled “Summary”subscribe'' (alias on-update-of'') postpones loading a plugin or snippet until
one or more specified files are modified on disk.
Syntax / Usage
Section titled “Syntax / Usage”zi ice subscribe"{~/files-*,/tmp/files-*}"zi ice on-update-of"~/my-config-file"Details
Section titled “Details”The ice value is a glob pattern (or brace-expanded list of patterns) pointing to file paths. Zinit checks whether any matching file has been updated since the last check. When a modification is detected, the plugin/snippet is loaded.
subscribe'' and on-update-of'' are interchangeable aliases.
Works with both plugins and snippets.
Examples
Section titled “Examples”# Load a plugin only after a config file is updatedzi ice subscribe"~/.my-tool-config" lucidzi light user/my-tool-pluginSee Also
Section titled “See Also”- wait
- trigger-load