#eternal bash history
export HISTTIMEFORMAT="%y/%m/%d %H:%M:%S "
PROMPT_COMMAND='history 1 >> ${HOME}/.bash_eternal_history'
Those lines are pretty self explanatory.
If bash supported something like zsh's PREEXEC, I could also archive the time it took to execute each command - that would be cool.
Thanks, thats really helpfull.
ReplyDelete