From 932616177a6138d0ad7b674197737abc7fbb0073 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:59:28 -0500 Subject: [PATCH] history fix --- modules/programs/zsh.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 9253a25..79e5f1f 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -1,6 +1,7 @@ { self, inputs, ... }: let username = "john"; + historySize = 10000; homeEndKeyBindings = '' # Normalize common Home/End escape sequences across terminal emulators. bindkey "^[[H" beginning-of-line @@ -52,8 +53,8 @@ in "eza" "clear" ]; - save = 1000; - size = 1000; + save = historySize; + size = historySize; share = true; }; oh-my-zsh = { @@ -127,6 +128,7 @@ in ${homeEndKeyBindings} HISTFILE=$HOME/.config/zsh/.zsh_history + SAVEHIST=${toString historySize} HISTORY_IGNORE=${lib.escapeShellArg "(${lib.concatStringsSep "|" ignorePatterns})"} HOSTNAME=$(hostname -s)