https://github.com/z-shell/system-completions
📦 Package - System Completions
https://github.com/z-shell/system-completions
completions zi zpackage zsh zsh-completions zsh-system-completions zshell
Last synced: 6 months ago
JSON representation
📦 Package - System Completions
- Host: GitHub
- URL: https://github.com/z-shell/system-completions
- Owner: z-shell
- Created: 2021-11-08T09:56:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T03:35:15.000Z (about 3 years ago)
- Last Synced: 2025-05-05T17:23:34.754Z (9 months ago)
- Topics: completions, zi, zpackage, zsh, zsh-completions, zsh-system-completions, zshell
- Homepage: https://wiki.zshell.dev
- Size: 38.1 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: docs/README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
❮ 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)

## Available `pack''` invocations
### Default Profile
```shell
zi pack for system-completions
```
```shell
# Utilize Turbo
zi wait pack for system-completions
```
```shell
# Utilize Turbo and initialize the completion system
zi wait pack atload=+"zicompinit; zicdreplay" for system-completions
```
```shell
# 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:
```shell
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**](https://github.com/z-shell/zi)
The [**Zi**](https://github.com/z-shell/zi) zsh package that uses the [zsh-string-lib](https://github.com/z-shell/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.