Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

91.8. zsh-5.9.2

Z shell, with an extensive completion system

5.9.2-2 · MIT-Modern-Variant · 1.9 SBU · 9.7 MiB, 1400 files · 41_system, 953 of 1047 · ports/core/shells/zsh

Homepage: https://www.zsh.org/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/shells.txt:

zsh is here for Completion/ — embedded knowledge of a thousand commands' arguments, worth more offline than on. bash remains the system shell.

Depends on: ncurses, pcre2.

Required by: no port names it.

Sources: zsh-5.9.2.tar.xz (3.3 MiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install zsh'

build.sh:

./configure \
	--prefix=/usr \
	--sysconfdir=/etc/zsh \
	--enable-etcdir=/etc/zsh \
	--enable-multibyte \
	--enable-pcre \
	--enable-libc-musl \
	--enable-maildir-support \
	--disable-gdbm \
	--disable-cap
grep -q '^name=zsh/pcre .*link=dynamic' config.modules || {
	echo "zsh: the pcre module is off — pcre2-config was not found" >&2
	exit 1
}
make
make DESTDIR=$PKG install
rm -f "$PKG"/usr/share/zsh/*/functions/test-repo-git-rebase-*

install -Dm644 /dev/stdin "$PKG/etc/zsh/zprofile" <<'ZPROFILE'
emulate sh -c '. /etc/profile'
ZPROFILE

install -Dm644 /dev/stdin "$PKG/etc/zsh/zshrc" <<'ZSHRC'
if (( $+commands[atuin] )); then
	eval "$(atuin init zsh --disable-up-arrow)"
fi
ZSHRC

Programs: zsh, zsh-5.9.2.

Directories: /etc/zsh, /usr/lib/zsh, /usr/share/licenses/zsh, /usr/share/zsh/5.9.2.