|
|
|
|
|
by Tiksi
4375 days ago
|
|
Here you go, just throw it in your .bashrc: shopt -s histappend
export HISTSIZE=100000
export HISTFILESIZE=100000
export HISTCONTROL=ignoredups:erasedups
export PROMPT_COMMAND="history -a;history -c;history -r;$PROMPT_COMMAND"
I wish I could give credit to where I originally found this but it was ages ago. |
|
It looks like it clears your shell's history, and then re-populates it from the .bash_history file?