history fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user