zsh: don't save commands matching some patterns to history
Alan Pearce alan@alanpearce.eu
Thu, 06 Apr 2023 21:01:27 +0200
1 files changed, 5 insertions(+), 0 deletions(-)
jump to
M user/settings/zsh.nix → user/settings/zsh.nix
@@ -55,6 +55,11 @@ path = "$HOME/.local/share/zsh/history"; save = 200000; size = 100000; share = false; + ignorePatterns = [ + "rm *" + "pkill *" + "* aria2c *" + ]; }; localVariables = {