Sometimes it would be useful to look back a command I know I used for a specific bit of analysis, but maybe I don't recall the exact file path where the files for the analyses (or whatever) were.
Does anyone know of any 3rd party tools or work arounds whereby the command history could be stored, along with the working directory at the time of invocation?