I'll pop in with a related question. (Maybe something to add to atuin?). Is anyone doing this for the output?
I've had iTerm session logging enabled on my personal machine for a while and have found it very useful every now and then when I need to remember what or how I did something a long time ago?
But there is a decently large risk that the output will contain something sensitive I don't want stored, so I'm wondering if there is some project which does this but would allow me to write some rules on what to react, which servers I don't want the output stored from etc.
For now I just manually disable logging when I know I will do something sensitive or when I know it's going to generate a lot of noise I don't want to waste space on. I have a shortcut created so I can select "Toggle logging" with shift+cmd+o.