Skip to content

Gallery Of Zinit Invocations#

PRs welcomed :)


# junegunn/fzf-bin
zinit ice from"gh-r" as"program"
zinit light junegunn/fzf-bin

# sharkdp/fd
zinit ice as"command" from"gh-r" mv"fd* -> fd" pick"fd/fd"
zinit light sharkdp/fd

# sharkdp/bat
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
zinit light sharkdp/bat

# ogham/exa, replacement for ls
zinit ice wait"2" lucid from"gh-r" as"program" mv"exa* -> exa"
zinit light ogham/exa

# All of the above using the for-syntax and also z-a-bin-gem-node annex
zinit wait"1" lucid from"gh-r" as"null" for \
     sbin"fzf"          junegunn/fzf-bin \
     sbin"**/fd"        @sharkdp/fd \
     sbin"**/bat"       @sharkdp/bat \
     sbin"exa* -> exa"  ogham/exa

zinit ice from"gh-r" as"program" mv"docker* -> docker-compose"
zinit light docker/compose

# jarun/nnn, a file browser, using the for-syntax
zinit pick"misc/quitcd/quitcd.zsh" sbin make light-mode for jarun/nnn

zinit ice as"program" atclone"rm -f src/auto/config.cache; ./configure" \
    atpull"%atclone" make pick"src/vim"
zinit light vim/vim

zinit ice as"program" make'!' atclone'./direnv hook zsh > zhook.zsh' \
    atpull'%atclone' src"zhook.zsh"
zinit light direnv/direnv

zinit ice from"gh-r" as"program" mv"direnv* -> direnv"
zinit light direnv/direnv

zinit ice from"gh-r" as"program" mv"shfmt* -> shfmt"
zinit light mvdan/sh

zinit ice from"gh-r" as"program" mv"gotcha_* -> gotcha"
zinit light b4b4r07/gotcha

zinit ice as"program" pick"yank" make
zinit light mptre/yank

zinit ice wait"2" lucid as'command' pick'src/vramsteg' \
    atclone'cmake .' atpull'%atclone' make  # use Turbo mode
zinit light psprint/vramsteg-zsh

zinit ice atclone'PYENV_ROOT="$PWD" ./libexec/pyenv init - > zpyenv.zsh' \
    atinit'export PYENV_ROOT="$PWD"' atpull"%atclone" \
    as'command' pick'bin/pyenv' src"zpyenv.zsh" nocompile'!'
zinit light pyenv/pyenv

zinit ice as"program" pick"$ZPFX/sdkman/bin/sdk" id-as'sdkman' run-atpull \
    atclone"wget -O; SDKMAN_DIR=$ZPFX/sdkman bash" \
    atpull"SDKMAN_DIR=$ZPFX/sdkman sdk selfupdate" \
    atinit"export SDKMAN_DIR=$ZPFX/sdkman; source $ZPFX/sdkman/bin/"
zinit light zdharma-continuum/null

# asciinema
zinit ice as"command" wait lucid \
    atinit"export PYTHONPATH=$ZPFX/lib/python3.7/site-packages/" \
    atclone"PYTHONPATH=$ZPFX/lib/python3.7/site-packages/ \
    python3 --quiet install --prefix $ZPFX" \
    atpull'%atclone' test'0' \
zinit load asciinema/asciinema.git

# Installation of Rust compiler environment via the z-a-rust annex
zinit id-as"rust" wait=1 as=null sbin="bin/*" lucid rustup \
    atload="[[ ! -f ${ZINIT[COMPLETIONS_DIR]}/_cargo ]] && zi creinstall -q rust; \
    export CARGO_HOME=\$PWD; export RUSTUP_HOME=\$PWD/rustup" for \


zinit ice as"completion"
zinit snippet


# ogham/exa also uses the definitions
zinit ice wait"0c" lucid reset \
    atclone"local P=${${(M)OSTYPE:#*darwin*}:+g}
            \${P}sed -i \
            '/DIR/c\DIR 38;5;63;1' LS_COLORS; \
            \${P}dircolors -b LS_COLORS > c.zsh" \
    atpull'%atclone' pick"c.zsh" nocompile'!' \
    atload'zstyle ":completion:*" list-colors “${(s.:.)LS_COLORS}”'
zinit light trapd00r/LS_COLORS

# revolver
zinit ice wait"2" lucid as"program" pick"revolver"
zinit light molovo/revolver

# zunit
zinit ice wait"2" lucid as"program" pick"zunit" \
            atclone"./build.zsh" atpull"%atclone"
zinit load molovo/zunit

zinit ice as"program" pick"$ZPFX/bin/git-*" make"PREFIX=$ZPFX" nocompile
zinit light tj/git-extras

zinit ice as"program" atclone'perl Makefile.PL PREFIX=$ZPFX' \
    atpull'%atclone' make'install' pick"$ZPFX/bin/git-cal"
zinit light k4rthik/git-cal

zinit ice as"program" id-as"git-unique" pick"git-unique"
zinit snippet

zinit ice as"program" cp" -> wd" mv" -> _wd" \
    atpull'!git reset --hard' pick"wd"
zinit light mfaerevaag/wd

zinit ice as"program" pick"bin/archey"
zinit load obihann/archey-osx


zinit ice pick""
zinit light paoloantinori/hhighlighter

# zsh-tag-search; after ^G, prepend with "/" for the regular search
zinit ice wait lucid bindmap"^R -> ^G"
zinit light -b zdharma-continuum/zsh-tag-search

# forgit
zinit ice wait lucid
zinit load 'wfxr/forgit'

# diff-so-fancy
zinit ice wait"2" lucid as"program" pick"bin/git-dsf"
zinit load zdharma-continuum/zsh-diff-so-fancy

# zsh-startify, a vim-startify like plugin
zinit ice wait"0b" lucid atload"zsh-startify"
zinit load zdharma-continuum/zsh-startify

# declare-zsh
zinit ice wait"2" lucid
zinit load zdharma-continuum/declare-zsh

# fzf-marks
zinit ice wait lucid
zinit load urbainvaes/fzf-marks

# zsh-autopair
zinit ice wait lucid
zinit load hlissner/zsh-autopair

zinit ice wait"1" lucid
zinit load psprint/zsh-navigation-tools

# zdharma-continuum/history-search-multi-word
zstyle ":history-search-multi-word" page-size "11"
zinit ice wait"1" lucid
zinit load zdharma-continuum/history-search-multi-word

# ZUI and Crasis
zinit ice wait"1" lucid
zinit load zdharma-continuum/zui

zinit ice wait'[[ -n ${ZLAST_COMMANDS[(r)cra*]} ]]' lucid
zinit load zdharma-continuum/zinit-crasis

# Gitignore plugin – commands gii and gi
zinit ice wait"2" lucid
zinit load voronkovich/gitignore.plugin.zsh

# Autosuggestions & fast-syntax-highlighting
zinit ice wait lucid atinit"ZPLGM[COMPINIT_OPTS]=-C; zpcompinit; zpcdreplay"
zinit light zdharma-continuum/fast-syntax-highlighting
# zsh-autosuggestions
zinit ice wait lucid atload"!_zsh_autosuggest_start"
zinit load zsh-users/zsh-autosuggestions

# F-Sy-H automatic per-directory themes plugin – available for patrons:
zinit ice wait"1" lucid from""
zinit load psprint/fsh-auto-themes

# zredis together with some binding/tying
# – defines the variable $rdhash
zstyle ":plugin:zredis" configure_opts "--without-tcsetpgrp"
zstyle ":plugin:zredis" cflags  "-Wall -O2 -g -Wno-unused-but-set-variable"
zinit ice wait"1" lucid \
    atload'ztie -d db/redis -a -zSL main rdhash'
zinit load zdharma-continuum/zredis

# Github-Issue-Tracker – the notifier thread
zinit ice lucid id-as"GitHub-notify" \
        on-update-of'~/.cache/zsh-github-issues/new_titles.log' \
        notify'New issue: $NOTIFY_MESSAGE'
zinit light zdharma-continuum/zsh-github-issues


# a service that runs the redis database, in background, single instance
zinit ice wait"1" lucid service"redis"
zinit light zservices/redis
# Github-Issue-Tracker – the issue-puller thread

zinit ice wait"2" lucid service"GIT" pick"zsh-github-issues.service.zsh"
zinit light zdharma-continuum/zsh-github-issues


zinit ice svn pick"completion.zsh" src"git.zsh"
zinit snippet OMZ::lib

zinit ice svn wait"0" lucid atinit"local ZSH=\$PWD" \
    atclone"mkdir -p plugins; cd plugins; ln -sfn ../. osx"
zinit snippet OMZ::plugins/osx

# Or with most recent Zinit and with ~/.zinit/snippets
# directory pruned (rm -rf -- ${ZPLGM[SNIPPETS_DIR]}):
zinit ice svn
zinit snippet OMZ::plugins/osx


zinit ice wait"0" lucid atload"geometry::prompt"
zinit light geometry-zsh/geometry

zinit ice pick"async.zsh" src"pure.zsh"
zinit light sindresorhus/pure

zinit light mafredri/zsh-async  # dependency
zinit ice svn silent atload'prompt sorin'
zinit snippet PZT::modules/prompt

zinit ice atload"fpath+=( \$PWD );"
zinit light chauncey-garrett/zsh-prompt-garrett
zinit ice svn atload"prompt garrett" silent
zinit snippet PZT::modules/prompt

zinit ice wait'!' lucid nocompletions \
         compile"{zinc_functions/*,segments/*,zinc.zsh}" \
         atload'!prompt_zinc_setup; prompt_zinc_precmd'
zinit load robobenklein/zinc

# ZINC git info is already async, but if you want it
# even faster with gitstatus in Turbo mode:
zinit ice wait'1' atload'zinc_optional_depenency_loaded'
zinit load romkatv/gitstatus

# After finishing the configuration wizard change the atload'' ice to:
# -> atload'source ~/.p10k.zsh; _p9k_precmd'
zinit ice wait'!' lucid atload'true; _p9k_precmd' nocd
zinit light romkatv/powerlevel10k