summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-04-06 21:01:27 +0200
committerAlan Pearce2023-04-06 21:01:27 +0200
commit96c7ccc2d95a48a74e26c444da5a959c6eb2ff35 (patch)
treedea522d076f0fca964c22a4757ae6d1fce7e1b25
parent29e2f18e1d71e016033307cd53e9184424093420 (diff)
downloadnixfiles-96c7ccc2d95a48a74e26c444da5a959c6eb2ff35.tar.lz
nixfiles-96c7ccc2d95a48a74e26c444da5a959c6eb2ff35.tar.zst
nixfiles-96c7ccc2d95a48a74e26c444da5a959c6eb2ff35.zip
zsh: don't save commands matching some patterns to history
-rw-r--r--user/settings/zsh.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 67c5b5b0..0963d490 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -55,6 +55,11 @@ in
       save = 200000;
       size = 100000;
       share = false;
+      ignorePatterns = [
+        "rm *"
+        "pkill *"
+        "* aria2c *"
+      ];
     };
 
     localVariables = {