Hacker News new | ask | show | jobs
by neLrivVK 2866 days ago
I just use my bash history with a very large HISTSIZE. Not as nice, but doesn't require any effort. Effort I never want to put in at the time I'm using the complicated command, I have other issues at that time :)
1 comments

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?

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.