跳到主要内容

🌀 子模块

An annex delivers the capability to clone additional submodules while installing a plugin or snippet. The submodules are then automatically updated on the zi update … command.

Synopsis:

submods'{user}/{plugin} -> {output directory}; …`

An example command utilizing the annex and its ice-modifier to load zsh-autosuggestions plugin via Prezto module autosuggestions.

~/.zshrc
zi ice svn submods'zsh-users/zsh-autosuggestions -> external'
zi snippet PZT::modules/autosuggestions

Install submods

Add the following snippet in the .zshrc file:

zi light z-shell/z-a-submods

This will register the submods'…' ice-modifier.