Skip to content

z-shell/system-completions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zi Logo ❮ Zi ❯ Package - System Completions

Moves the stock Zsh completions under the control of Zi and provides the ability to selectively enable (cenable) / disable (cdisable).

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

zi zsh system-completions package


Available pack'' invocations

Default Profile

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

The Zi command executed will be equivalent to:

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

This repository compatible with Zi

The Zi zsh 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.