zsh: Patch hardcoded histsize out of grml’s config

This commit is contained in:
Simon Bruder 2022-08-10 20:37:23 +02:00
parent 0b4bfc931c
commit 8e96133b7b
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -20,6 +20,14 @@ in
withBDplus = true; withBDplus = true;
}; };
grml-zsh-config = prev.grml-zsh-config.overrideAttrs (o: o // {
postPatch = (o.postPatch or "") + ''
substituteInPlace etc/zsh/zshrc \
--replace 'isgrmlcd && HISTSIZE=500 || HISTSIZE=5000' "" \
--replace 'isgrmlcd && SAVEHIST=1000 || SAVEHIST=10000' ""
'';
});
# adapted from https://github.com/NixOS/nixpkgs/pull/85790 # adapted from https://github.com/NixOS/nixpkgs/pull/85790
# TODO: Remove when memtest86+ ≥ 5.31b is in nixpkgs # TODO: Remove when memtest86+ ≥ 5.31b is in nixpkgs
memtest86plus = prev.memtest86plus.overrideAttrs (o: o // rec { memtest86plus = prev.memtest86plus.overrideAttrs (o: o // rec {