@Diagon: I use a form of my answer here and save the entries in a file separate from
.bash_history
. I have it record the directory that I'm in when I execute the command along with other information in addition to the command line.