Bash: run a hook after each command?
Is it possible to run a post-command hook? I want to put what would end up in my .bash_history file into an sqlite database along with meta-info like process ID and timestamp, so that I can keep track of different shell histories. (I routinely have dozens of shells open).
Last edited by swingliner; 11-04-2011 at 04:28 AM.
|