From 53df000ba6497560efde806f5c2d085bcf45a79e Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 12 Nov 2023 22:16:33 +0000 Subject: [PATCH] zsh: increase history size --- hosts/common/programs/zsh/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/common/programs/zsh/default.nix b/hosts/common/programs/zsh/default.nix index c5040798..fe25b01c 100644 --- a/hosts/common/programs/zsh/default.nix +++ b/hosts/common/programs/zsh/default.nix @@ -67,6 +67,8 @@ in '' + '' HISTFILE="$HOME/.local/share/zsh/history" + HISTSIZE=1000000 + SAVEHIST=1000000 # auto-cd into any of these dirs by typing them and pressing 'enter': hash -d 3rd="/home/colin/dev/3rd" @@ -117,6 +119,7 @@ in # nixos defaults: "HIST_FCNTL_LOCK" "HIST_IGNORE_DUPS" + "HIST_EXPIRE_DUPS_FIRST" "SHARE_HISTORY" # customizations: "AUTO_CD" # type directory name to go there