I'm on ubuntu 10.4 and my shell is
When I open several gnome terminals and close them history is properly appended.
When I enter
shopt it says among other things:
Can anyone tell me where the append behaviour is configured?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
bash tries to append history as much as possible. With
histappend on, you will guarantee always appending history. If it is off, history will still be appended only until the number of commands you Enter in a interactive
> HISTSIZE. When this happens, history will be overwritten.
If you want to explicitly overwrite history, you can use
history -w in
.bash_logout or an exit trap.
I posted in more detail in this answer about how
bash history append works.
I wrote a quick tip about setting histappend this on my site but I will paraphrase the post here, to answer your question, I hope.
You should be able to configure histappend to be 'on' by using shopt.
To enable run
shopt -s histappend
To disable run
shopt -u histappend
Does that help?