1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-17 05:22:07 +00:00
serenity/Ports/zsh/package.sh
Fabian Dellwing 6acf03d9a8 Ports: Add default zshrc
Previosly we had a very messed up PS1 as the Shell PROMPT is not
unset correctly.

We now provide a default `zshrc` file for the system that uses
sane values for basic categories like aliases, autocompletion and
history management to make the port more usable. It also forces
the prompt to be the default zsh one.
2023-04-25 20:48:51 +02:00

19 lines
531 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=zsh
version=5.9
files="https://sourceforge.net/projects/zsh/files/zsh/${version}/zsh-${version}.tar.xz zsh-${version}.tar.xz 9b8d1ecedd5b5e81fbf1918e876752a7dd948e05c1a0dba10ab863842d45acd5"
auth_type="sha256"
useconfigure=true
use_fresh_config_sub=true
pre_configure() {
run "./Util/preconfig"
}
post_configure() {
run_replace_in_file "s/define HAVE_PRCTL 1/undef HAVE_PRCTL/" config.h
}
post_install() {
cp "${PORT_META_DIR}/zshrc" "${SERENITY_INSTALL_ROOT}/etc/"
}