Re: Common History across Shell



On Jul 11, 7:00 pm, BartlebyScrivener <bscrivene...@xxxxxxxxx> wrote:
On Jul 11, 5:27 am,quarkLore<agarwal.prat...@xxxxxxxxx> wrote:

What you are describing is a little different. This will append
history in file from each session *after* the particular session
exits. What I wanted was multiple sessions can share history (the
history maintained in RAM and not file) amongst themselves during
active session.

I'm no bash or linux expert, but it seems it would be like having one
file open and three different programs writing to it. In ohter words,

No, the 3 sessions might share there information without actually
writing on the file. Shell might behave the normal way (maintain
history internally and update file when quitting) but this sharing is
done on a specific user action. On that particular action they share
there history with/without updating the file.

counter-intuitive. I'll be interested to see what you find out. How
about Chris Johnson's suggestion. Does that help?

Johnson's idea is right but the PROMPT COMMAND would have to be issued
from every shell that is opened

.



Relevant Pages

  • Re: Newbie: save an interpretation session
    ... editing/interpretation session for next Forth interpreter startup. ... In iForth, every line of input is appended to a history file and all lines ... it on the command line. ...
    (comp.lang.forth)
  • Re: How to disable command prompt history?
    ... > executed commands by pressing Up Arrow? ... That would depend on which shell you are running. ... But you can avoid writing the history of the current session to the ... So next time when you login the history of the previous session will ...
    (freebsd-questions)
  • GP-CVS-V4.1.0 -- no history file?
    ... With V4.0.0 there is a history inside the session and after exit and restart I can access the last commands of the former session via the ... If it is a default feature: I would like to ask: Are there any parameters, which I must set to the new gnuplot 4.1 to obtain the "old" history mechanism? ...
    (comp.graphics.apps.gnuplot)
  • Re: Firefox help.
    ... it had history for the current session only. ... reopened FF I found that it had no history at all but loaded history ... for the current session as the 5 tabbed pages loaded. ... retaining it. ...
    (rec.outdoors.rv-travel)
  • Re: How to disable command prompt history?
    ... to show last executed commands by pressing Up Arrow? ... But you can avoid writing the history of the current ... previous session will not be shown. ...
    (freebsd-questions)