3 ms·
You just have to configure it to do so: shopt -s histappend HISTCONTROL=ignoredups:erasedups PROMPT_COMMAND='history -a;history -n' See more exa
by etatoby 10y ago
You just have to configure it to do so:
shopt -s histappend
HISTCONTROL=ignoredups:erasedups
PROMPT_COMMAND='history -a;history -n'
See more examples and discussions here: http://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows http://unix.stackexchange.com/questions/1288/preserve-bash-h...