2. If you care about security in any way, you should be using FileVault rather than cargo-culting it into apps (there's no way for that "encrypted file" to be secure unless you have to type in a password every time you shut down the system). If you do that, anyone who can read that file has already compromised your account and there's no additional exposure from this.
Security is not just about passwords. Its about operational knowledge of procedures and habits at the console, too. Knowing that a certain command is always used, or some such operational administration occurs, definitely assists attack.
>2. FileVault
FileVault is not always available, nor is it always allowable.
But history files are not only about password, as I said.
THANKS for letting us know about cmd-opt-q! I'll have to start using that all the time since it does seem like a potential security hole.
So you don't have to use the shortcut at all in that case.
Personally I prefer getting used to using it on a case-by-case basis. For example, when I leave work I tend to quit most apps on my laptop with Cmd+Option+Q, so that when I get home they don't re-open with work and I can start working on personal projects.
I'll just have to get used to cmd-opt-q.
defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool false
or something similar ought to do the trick