link
Summary
Section titled “Summary”link causes a local snippet to be symlinked into the Zinit snippets directory rather
than copied. This keeps the local source file in sync automatically.
Syntax / Usage
Section titled “Syntax / Usage”zi ice linkzi snippet /path/to/local/file.zshDetails
Section titled “Details”For local file snippets (non-URL), Zinit normally copies the file into its snippets
cache. With link, a symlink is created instead. Changes to the source file are
immediately reflected without needing to update the snippet.
Uses relative symlinks when realpath version 8.23 or later is available.
Does not apply to URL-based snippets. Does not work with plugins.
Examples
Section titled “Examples”# Symlink a local dotfiles script rather than copying itzi ice linkzi snippet ~/dotfiles/zsh/aliases.zshSee Also
Section titled “See Also”- id-as