From 016fe02465d00ddf6a573b6267aa078f1f29f589 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 16 Aug 2022 10:44:12 +0200 Subject: [PATCH] zsh: Make history more usable --- users/simon/modules/zsh/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/users/simon/modules/zsh/default.nix b/users/simon/modules/zsh/default.nix index fa13cb3..c2ffd93 100644 --- a/users/simon/modules/zsh/default.nix +++ b/users/simon/modules/zsh/default.nix @@ -78,6 +78,7 @@ in zsh = { enable = true; history = { + extended = true; save = 100000; size = 100000; }; @@ -125,6 +126,9 @@ in source ${pkgs.zsh-fast-syntax-highlighting}/share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh FAST_HIGHLIGHT_STYLES[comment]=fg=010 + # history + setopt HIST_IGNORE_ALL_DUPS + source ${./pass-wrappers.zsh} '') ];