all repos — nixfiles @ 96c7ccc2d95a48a74e26c444da5a959c6eb2ff35

System and user configuration, managed by nix and home-manager

zsh: don't save commands matching some patterns to history
Alan Pearce alan@alanpearce.eu
Thu, 06 Apr 2023 21:01:27 +0200
commit

96c7ccc2d95a48a74e26c444da5a959c6eb2ff35

parent

29e2f18e1d71e016033307cd53e9184424093420

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -55,6 +55,11 @@ path = "$HOME/.local/share/zsh/history";       save = 200000;
       size = 100000;
       share = false;
+      ignorePatterns = [
+        "rm *"
+        "pkill *"
+        "* aria2c *"
+      ];
     };
 
     localVariables = {