# Install the newest zsh
zi pack for zsh
# Install the selected zsh version
zi pack"5.9" for zsh
zi pack"5.8.1" for zsh
zi pack"5.8" for zsh
zi pack"5.7.1" for zsh
zi pack"5.6.2" for zsh
zi pack"5.5.1" for zsh
zi pack"5.4.2" for zsh
zi pack"5.3.1" for zsh
zi pack"5.2.4" for zsh
zi pack"5.1.1" for zshBy default the package builds Zsh into $ZPFX and does not touch the system
shell. To also replace /bin/zsh, set ZSH_INSTALL_SYSTEM=1 when installing.
The original is backed up to /bin/zsh.bkp; if that backup already exists,
the system replacement step fails instead of overwriting it:
ZSH_INSTALL_SYSTEM=1 zi pack for zshThe ZI command that runs for the default profile is generated from scripts/build-manifest.py and mirrored in package.json.
In short, the default profile:
- runs
./.preconfig, then./configure --prefix="$ZPFX" - uses
LDFLAGS="-L/usr/lib -L/usr/local/lib" - runs
make installwhenyodlis available, otherwise falls back tomake install.bin install.fns install.modules - installs into
$ZPFXby default - copies the built shell to
/bin/zshonly whenZSH_INSTALL_SYSTEM=1is set and/bin/zsh.bkpdoes not already exist
By default it never replaces /bin/zsh. System replacement requires:
ZSH_INSTALL_SYSTEM=1 zi pack for zshPackage: system-completions
Moves the stock Zsh completions under the control of ZI (optional)
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-completionsSelectively enable and disable the completions with
cenableandcdisable.
This repository compatible with ZI
The zsh-users/zsh 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.
