Files
AeroPkg/assets/var/gnu/zsh.md

40 lines
872 B
Markdown
Raw Normal View History

2025-08-26 04:41:14 +03:00
zsh 5.9.0.2
=
https://github.com/zsh-users/zsh/archive/refs/tags/zsh-5.9.0.2-test.tar.gz
``` sh *** build ***
autoreconf --install
2025-08-26 04:41:14 +03:00
./configure \
--prefix=/pkg/gnu/zsh \
--enable-etcdir=/pkg/gnu/zsh/etc \
2026-09-10 16:59:11 +03:00
--enable-additional-fpath=/pkg/gnu/share/zsh/site-functions \
2025-08-26 04:41:14 +03:00
--enable-multibyte \
--enable-pcre \
--enable-cap
make -j$(nproc)
make install.bin install.modules install.fns
2025-08-26 04:41:14 +03:00
```
``` sh *** config ***
mkdir -p /pkg/gnu/zsh/etc
2026-09-10 16:59:11 +03:00
2026-07-22 04:29:56 +03:00
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
2026-09-10 16:59:11 +03:00
cat > /pkg/gnu/zsh/etc/zshrc << 'EOF'
autoload -Uz compinit && compinit
for f in /pkg/gnu/share/zsh/zshrc-auto.d/*.zsh(N); do
. "$f"
done
PROMPT='[%n@%m %~]$ '
setopt NO_HUP NO_CHECKJOBS RM_STAR_SILENT
EOF
2025-08-26 04:41:14 +03:00
```