I find I do a lot of work on a project in a set directory. Sometimes - a few months down the track, I need to redo something on that project but I can't remember what the hell I did. I use mercurial or git to track changes to files but I want to be able to remember what commands I issued in that directory.
Searching through my shell history is not very informative. I already log everything to my .*_history files, but I want a list of things I did in ~/foo/bar, and not all the other (million) things that I did that week. Hell, I probably can't even remember what month I last worked on that particular project.
Does anyone have any ideas how a project directory log file of all shell commands I've used? I'm envisioning a command something like:
... which would set the shell log file to ~/myproject/.history.log, load the previous history from that logfile, and maybe update my prompt to tell me what directory I'm working on (like e.g. vcprompt to provide version control info).
Is there anything out there like this?