From b6901adbc805584cfb875775183df3808e5834a8 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Fri, 28 Nov 2025 20:51:05 +0300 Subject: [PATCH] zsh: config history --- modules/user/zsh.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/user/zsh.nix b/modules/user/zsh.nix index 1ac26b7..73ba166 100644 --- a/modules/user/zsh.nix +++ b/modules/user/zsh.nix @@ -73,8 +73,12 @@ TERM=xterm-256color ''; - history.size = 10000; - history.path = "${config.xdg.dataHome}/zsh/history"; + history = { + size = 10000; + path = "${config.xdg.dataHome}/zsh/history"; + expireDuplicatesFirst = true; + ignoreDups = true; + }; oh-my-zsh.enable = true; };