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; };