734 B
734 B
zsh 5.9.0.2
https://github.com/zsh-users/zsh/archive/refs/tags/zsh-5.9.0.2-test.tar.gz
autoreconf --install
./configure \
--prefix=/pkg/gnu/zsh \
--enable-etcdir=/pkg/gnu/zsh/etc \
--enable-multibyte \
--enable-pcre \
--enable-cap
make -j$(nproc)
make install.bin install.modules install.fns
mkdir -p /pkg/gnu/zsh/etc
cat > /pkg/gnu/zsh/etc/zprofile << 'EOF'
if [ -d /pkg/gnu/s6/etc/envdir ]; then
for f in /pkg/gnu/s6/etc/envdir/*; do
[ -r "$f" ] && export "$(basename "$f")=$(cat "$f")"
done
fi
EOF
echo "PROMPT='[%n@%m %~]$ '\nalias ls='ls --color=auto'\nsetopt no_hup\nsetopt no_checkjobs\nsetopt RM_STAR_SILENT" > /pkg/gnu/zsh/etc/zshrc