Better Bash History (2012)
I set up my bash config to store history separately for each working directory (ie separate history files that I store under a $HOME/.bash_history_d directory) – so as I cd into a project directory, the history is populated with the commands that I've run within that directory.I find this super-helpful to remind me of the context for projects – cd in, then up-arrow to whatever that command is I usually run to launch this server, grep this logfile, etc.There are some downsides – sometimes I want to run the same command in directory X and also in subdirectory X/Y, but I love doing it this way.Anyone else done something similar?