|
From: | Paul Jarc |
Subject: | Re: Bash history when running several term sessions to same account |
Date: | Wed, 16 Jan 2002 11:00:23 -0500 |
User-agent: | Gnus/5.090005 (Oort Gnus v0.05) Emacs/20.7 (i386-redhat-linux-gnu) |
Chet Ramey <chet@nike.ins.cwru.edu> wrote: >> How do I make the history from one term session available to another >> term session? > > Each bash instance keeps the history list in memory. The list is > written to the history file on exit or when told to using `history -w' > or `history -a'. Does "history -a" reset the notion of the "beginning of the current session" for future invocations of itself so that the same history entry is never written twice? And is "history -n" very intelligent? Would it work to put "history -n; history -a" in $PROMPT_COMMAND? paul
[Prev in Thread] | Current Thread | [Next in Thread] |