14
5
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 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. 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:
workon myproject
... 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?
Alternatively you can make use of
README.md
or create other.md
files per topic and point to them from the readme. That's if you have a markdown friendly source control interface. – Reno – 2016-04-07T13:47:58.010