From 96c7ccc2d95a48a74e26c444da5a959c6eb2ff35 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 6 Apr 2023 21:01:27 +0200 Subject: zsh: don't save commands matching some patterns to history --- user/settings/zsh.nix | 5 +++++ 1 file changed, 5 insertions(+) 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 = { -- cgit 1.4.1