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)