9
3
My .bashrc
contains the following:
HISTSIZE=30000
PROMPT_COMMAND="history -a"
export HISTSIZE PROMPT_COMMAND
What I notice:
- the
.bash_history
does get appended. - history on a given terminal session does not include entries appended from other terminal sessions
The desired behavior is to have the .bash_history
reloaded after any command on any terminal. What is the way to achieve this? Presumably it would be a modification to the PROMPT_COMMAND
?
I've added
history -r
now - and that does fix the issue: thanks. Afa "running something new" - the "new" something ishistory | tail -n 100
so that was being done properly. – javadba – 2016-12-21T16:41:38.243