id-as
Summary
Section titled “Summary”id-as'' assigns a nickname (alias) to a plugin or snippet, decoupling the handler
name Zinit uses internally from the actual URL or repository path.
Syntax / Usage
Section titled “Syntax / Usage”zi ice id-as"<alias>"zi snippet https://very.long.url/path/to/file.zshDetails
Section titled “Details”Zinit tracks plugins and snippets by their identifier. For snippets sourced from long
URLs this identifier becomes unwieldy in zinit list, zinit update, and similar
commands. id-as'' replaces the identifier with a short human-readable name.
The alias is used for zinit update <alias>, zinit delete <alias>, and anywhere else
a plugin-spec is expected.
Works with both plugins and snippets.
Examples
Section titled “Examples”# Give a long URL snippet a short handlezi ice id-as"clipboard" lucidzi snippet https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/lib/clipboard.zsh
# Disambiguate two forks of the same repo loaded side-by-sidezi ice id-as"my-fork/plugin"zi load myfork/pluginSee Also
Section titled “See Also”- as