I want to clear my shell history on every shutdown/logout.
I know how to clear the history manually, I know how to clear the history automatically, when closing the session/terminal emulator. However, this is not the intended behaviour.
I am using zsh on manjaro with wayland and sway.
I have tried using .zlogout. However, this did not work, as far as I understand, because it is ment for login shells (I don't know what makes a login shell).
$HISTFILEand$SAVEHISTin~/.zshrc). Why not just not do that history saving.