🛠 Commands
Updates
To update and recompile Zi run zi self-update
in the command line. To update all plugins and snippets, issue zi update
. To update all in parallel (up to 40 at the time) zi update -p 40
If you wish to update only a single plugin/snippet instead issue zi update <plugin-name>
. A list of commits will be shown if any.
Some plugins require acting each time they're updated. One way you can do this is by using the atpull'…'
ice modifier. For example, writing zi ice atpull'./configure'
before loading a plugin will execute ./configure
after a successful update. Refer to ice-modifiers for more information.
The ice-modifiers for any plugin or snippet are stored in their directory in a ._zi
subdirectory, hence the plugin doesn't have to be loaded to be correctly updated. There's one other file created there, .zi_lstupd
– it holds the log of the new commits pulled-in in the last update.
Self-update & compile:
zi self-update
Update plugins and snippets:
zi update --all
zi update --reset
zi update --quiet
Update plugins or snippets:
zi update --plugins
zi update --snippets
Update specific plugins. Default is GitHub but can specify any with ice from'…':
zi update <user>/<repo>
Plugin parallel update plugins:
zi update --parallel
Increase the number of jobs in a concurrent set to 40
zi update --parallel 40
Compinit
Calling compinit
once is a huge performance gain, for example, shell startup time with double compinit
: 0.980 sec, with cdreplay
and single compinit
: 0.156 sec.