Skip to content

Show & Tell: Multiple git extension tools loaded in turbo with sbin shims

A concise pattern from the zinit README for loading multiple git extension tools from GitHub in turbo mode, 1 second after the prompt, using the zinit-annex-bin-gem-node sbin ice for shim creation.

Key points:

  • as'null' disables script sourcing (these are command-line tools, not zsh plugins)
  • sbin creates shims in $ZPFX/bin (automatically in PATH)
  • lucid suppresses the “Loaded” message
  • wait'1' defers loading to 1 second after prompt, keeping startup fast
  • Tools without special config are just listed by their user/repo
  • Tools needing post-install steps use atload or make ices per-entry in the for block
Terminal window
zi as'null' lucid sbin wait'1' for \
Fakerr/git-recall \
davidosomething/git-my \
iwata/git-now \
paulirish/git-open \
paulirish/git-recent \
atload'export _MENU_THEME=legacy' \
arzzen/git-quick-stats \
make'install' \
tj/git-extras \
make'GITURL_NO_CGITURL=1' \
sbin'git-url;git-guclone' \
zdharma-continuum/git-url

Target install directory is $ZPFX (~/.local/share/zinit/polaris by default, which is prepended to $PATH).

  • The zinit-annex-bin-gem-node annex documentation for the full sbin spec.