This is useful if you are developing locally, but what if a lot of your command line usage is on remote servers that you have SSH'd into?
I believe iTerm2 has some support for logging remote commands, but I'm not sure it quite does the trick. Anybody know of another tool that will log both local and remote commands?