fix(macro truncate_shell_history): avoid false positives from .zsh_history.new and .LOCK files

Signed-off-by: m4wh6k m4wh6k@users.noreply.github.com
This commit is contained in:
m4wh6k
2021-12-31 18:09:57 -08:00
committed by poiana
parent 6ead925f51
commit 9e8687401d

View File

@@ -2584,7 +2584,7 @@
condition: >
(open_write and (
fd.name contains "bash_history" or
fd.name contains "zsh_history" or
fd.name endswith "zsh_history" or
fd.name contains "fish_read_history" or
fd.name endswith "fish_history") and evt.arg.flags contains "O_TRUNC")