Zinit zsh plugin manager configuration and binary installs...
Manage zsh plugins, CLI binary installs, and completions with zinit in a dotfiles repo.
A conventional zinit dotfiles layout. Where the repo is managed with GNU Stow these
files symlink into $HOME; adapt the paths for bare-git, chezmoi, or plain copies.
.zshrc - main zinit config, plugin definitions, binary installs.config/zsh/ - modular zsh configs loaded via zinit snippetplugins.zsh - additional plugin loadsaliases.zsh - shell aliasesexports.zsh - PATH and env varscompletions.zsh - completion setupcompletions/ - custom completion files (_just, _inv, etc.)history.zsh, keys.zsh, styles.zsh - other configszinit as"null" wait lucid from"gh-r" for \
sbin"binary-name" owner/repo
zinit for \
from'gh-r' \
sbin'tool' \
atclone'./tool completion zsh > _tool' atpull'%atclone' as'completion' \
@owner/repo
zinit wait lucid for \
OMZP::plugin-name \
OMZL::lib-file.zsh
zinit for \
as'null' \
configure'--prefix=$PWD' \
make'install' \
sbin \
@owner/repo
| Ice | Purpose |
|---|---|
from'gh-r' |
Download from GitHub releases |
sbin'pattern -> name' |
Create bin symlink in $ZPFX/bin |
wait"N" |
Turbo load after N seconds |
lucid |
Suppress "Loaded..." message |
atclone"cmd" |
Run on clone |
atpull'%atclone' |
Run atclone on update |
as'completion' |
Register as completion |
as'null' |
Don't source as plugin |
For comprehensive patterns and troubleshooting, see:
references/ice-modifiers.md - all ice options with examplesreferences/patterns.md - common install patterns (gh-r, OMZ, turbo)references/patterns-advanced.md - external tools, prompts, syntax highlightingreferences/troubleshooting.md - load order, debugging