Common History across Shell



AFAIK history in bash is implemented such that each bash instance
maintains its individual history in memory. As and when a bash session
exits it updates history file.

If there are multiple shells running together then commands entered in
one can't be accessed using history command from other shells.

I am looking for a feature where if a user has multiple shells and on
a special keystroke / command all shells get a common history which is
sum of all histories.

Does such a feature exist in bash or any other shell?
Can such a feature be implemented without changing the shell's code?

.



Relevant Pages

  • Re: Common History across Shell
    ... maintains its individual history in memory. ... If there are multiple shells running together then commands entered in ... one can't be accessed using history command from other shells. ... Does such a feature exist in bash or any other shell? ...
    (comp.unix.shell)
  • Re: HOWTO enter Ctrl-S to BASH from console
    ... those keys for something else... ... ^S would normally invoke to some other keys in bash. ... After reviewing your bug report I'll ask the dumb question: ... entries forward of your current one in the history that matched what you ...
    (Debian-User)
  • Re: Switching from tcsh to bash as an interactive shell
    ... >> Anyone care to clue me in as to some of the neato features bash has over ... But isn't that what tcsh does? ... I have never been able to make out how bash history ... Bits of command appear and disappear, and I don't know if one ...
    (comp.os.linux.misc)
  • Re: bash history search key binding
    ... maybe your bash history was accidentally reset.. ... or lost its cd* commands .. ... will display the cd commands in your current history.. ... Maybe I should try reassigning the backward search command to CTRL-R for a while and see if it has any limitations that I didn't notice while experimenting.. ...
    (Debian-User)
  • Re: intelligent unix shells
    ... >>on making unix shells(csh, bash, sh) intelligent. ... > 1)Learn the habbits of the user. ... > Most shells have a history and a few startup files you can put ... It would not be bad if the history function of the shell were ...
    (comp.unix.shell)