history fix

This commit is contained in:
John Lancaster
2026-04-19 15:59:28 -05:00
parent c1bfa64cc8
commit 932616177a
+4 -2
View File
@@ -1,6 +1,7 @@
{ self, inputs, ... }: { self, inputs, ... }:
let let
username = "john"; username = "john";
historySize = 10000;
homeEndKeyBindings = '' homeEndKeyBindings = ''
# Normalize common Home/End escape sequences across terminal emulators. # Normalize common Home/End escape sequences across terminal emulators.
bindkey "^[[H" beginning-of-line bindkey "^[[H" beginning-of-line
@@ -52,8 +53,8 @@ in
"eza" "eza"
"clear" "clear"
]; ];
save = 1000; save = historySize;
size = 1000; size = historySize;
share = true; share = true;
}; };
oh-my-zsh = { oh-my-zsh = {
@@ -127,6 +128,7 @@ in
${homeEndKeyBindings} ${homeEndKeyBindings}
HISTFILE=$HOME/.config/zsh/.zsh_history HISTFILE=$HOME/.config/zsh/.zsh_history
SAVEHIST=${toString historySize}
HISTORY_IGNORE=${lib.escapeShellArg "(${lib.concatStringsSep "|" ignorePatterns})"} HISTORY_IGNORE=${lib.escapeShellArg "(${lib.concatStringsSep "|" ignorePatterns})"}
HOSTNAME=$(hostname -s) HOSTNAME=$(hostname -s)