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 <i>within that directory</i>.<p>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.<p>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.<p>Anyone else done something similar?