zsh
Summary
Section titled “Summary”Clones the zsh-users/zsh repository and compiles Zsh from source, installing it to $ZPFX and optionally replacing /bin/zsh — useful for running a specific or newer version of Zsh alongside the system-installed one.
Syntax / Usage
Section titled “Syntax / Usage”zi pack for zsh-users/zshzi pack"<version>" for zsh-users/zshzi pack"<version>-tcsetpgrp" for zsh-users/zshAvailable profiles: default (latest HEAD), 5.1.1, 5.2.4, 5.3.1, 5.4.2, 5.5.1, 5.6.2, 5.7.1, 5.8, 5.9 — each also with a -tcsetpgrp variant.
Details
Section titled “Details”- Provides:
zshbinary compiled and installed to$ZPFX; optionally copies it to/bin/zsh(backing up the original as/bin/zsh.bkp) ifsudois available. - All profiles share the same base ices:
git,as"null",nocompile,nocompletions,lucid,countdown,id-as"zsh-users/zsh",atpull"%atclone". defaultprofile: clones the current HEAD and runs./.preconfigthen./configure --prefix=$ZPFX && make install(falls back tomake install.bin install.fns install.modulesifyodlis missing for man pages).- Versioned profiles (e.g.
5.9): rungit checkout --quiet zsh-5.9before the configure/make step. -tcsetpgrpvariants add--with-tcsetpgrpto the./configureinvocation for systems that need explicittcsetpgrpsupport.- Requires:
cc,make,cp,rm.
Examples
Section titled “Examples”# Build latest Zsh from sourcezi pack for zsh-users/zsh
# Build a specific versionzi pack"5.9" for zsh-users/zsh
# Build 5.8 with tcsetpgrp supportzi pack"5.8-tcsetpgrp" for zsh-users/zshCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- The
countdownice causes a visible countdown before the build starts — this is intentional to give the user a chance to cancel. - If
yodlis not installed, man pages are skipped; the build proceeds with a warning. - The package attempts to replace
/bin/zshviasudo cponly ifsudois available and/bin/zshexists — no error is raised if it cannot. - Build time can be several minutes; not suitable for lazy-loading or turbo mode.
See Also
Section titled “See Also”- pkg-zsh-static — hermetic static Zsh binary (no build required)
- pkg-overview — how
zi packworks