Hacker News new | ask | show | jobs
by zach43 2866 days ago
How do you deal with input from multiple concurrent bash sessions?

Usually I’ll have two or three konsole windows open at the same time, and I’ve noticed that only one of them appears in the bash history...is there an easy way to have it store all the history from all the windows?

2 comments

Use zsh.

https://askubuntu.com/questions/23630/how-do-you-share-histo...

It is possible to get similar effects by kludging around with bash, but it's a built-in feature in zsh.

    shopt -s histappend
In your .bashrc. Note that history is only saved when the shell exits, so new shells will only see history from other shells that have already exited.