/brew-completions

📦 ❮ ZI ❯ Package - Brew Completions

GNU General Public License v3.0GPL-3.0

ZI Logo ❮ ZI ❯ Package - Brew Completions

A package brings Homebrew Shell Completion under the control of Zsh & ZI

Package source: Tarball Binary Git Node Gem Mod
Status: ✔️ (default)

Brew Completion System


Available pack'' invocations

Selectively enable or disable the completions with cenable and cdisable.

Default Profile

zi pack for brew-completions
# Utilize Turbo
zi wait pack for brew-completions
# Utilize Turbo and initialize the completion system
zi wait pack atload=+"zicompinit; zicdreplay" for brew-completions
# Utilize Turbo and initialize the completion with fast compinit
zi wait pack atload=+"zicompinit_fast; zicdreplay" for brew-completions

The ZI command executed will be equivalent to:

zi has'brew' id-as='brew-completions' wait as='completion' lucid \
  atclone="+zi-message 'Installing Brew completions...'; \
    command mkdir -p ${ZPFX}/completions; \
    command cp -f $(brew --prefix)/share/zsh/site-functions/_* ${ZPFX}/completions; \
    zi creinstall -q $(brew --prefix)/share/zsh/site-functions" \
  atload='fpath=( ${(u)fpath[@]:#$(brew --prefix)/share/zsh/*} ); fpath+=( ${ZPFX}/completions )' \
  atpull='%atclone' run-atpull nocompile countdown for \
    z-shell/0

This repository compatible with ZI

The ZI package that uses the zsh-string-lib to automatically:

  • get the plugin's Git repository OR release-package URL,
  • get the list of the recommended ices for the plugin,
    • there can be multiple lists of ices,
    • the ice lists are stored in profiles; there's at least one profile, default,
    • the ices can be selectively overridden.