3 ms·
I've been using '.bash_history per directory' method for quite a while. Mostly changed 'cd' to see if I'm in /home or /opt and switch the HISTORY_PATH.. then ta
by buserror 3y ago
I've been using '.bash_history per directory' method for quite a while. Mostly changed 'cd' to see if I'm in /home or /opt and switch the HISTORY_PATH.. then tail -5 the bash_history that is (likely) there.
This allows me to switch context/projects etc and have a valuable history, instead of a whole mashup of all kind of other activities crammed into a single file in $HOME...
Perhaps I could use a single SQLITE database with a fancy invocation to do the same? Ie limit the history to the current subtree commands have been invoked in?