From 8e96133b7bdd329ff5f37b32841ceff827728619 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 10 Aug 2022 20:37:23 +0200 Subject: [PATCH] =?UTF-8?q?zsh:=20Patch=20hardcoded=20histsize=20out=20of?= =?UTF-8?q?=20grml=E2=80=99s=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/default.nix b/pkgs/default.nix index 69d4274..5073cda 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -20,6 +20,14 @@ in 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 # TODO: Remove when memtest86+ ≥ 5.31b is in nixpkgs memtest86plus = prev.memtest86plus.overrideAttrs (o: o // rec {