[Cialug] How to add multiple instances of bash to your bash history

Andrew Denner linux-list at upeke.com
Thu Mar 20 09:02:14 CDT 2014


Is it a bug or a feature?


On Thu, Mar 20, 2014 at 6:23 AM, Todd Walton <tdwalton at gmail.com> wrote:

> On Mar 19, 2014 11:56 PM, "Adam Hill" <adam at diginc.us> wrote:
> >
> > Here is my standard history setup from ~/.bashrc
> >
> > export HISTSIZE=100000
> > export HISTFILESIZE=50000
> > export HISTCONTROL=ignoredups
> > export PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND"
> >
> > the -a submits your recent commands so other sessions see them, the -n
> > pulls the hitsory back into your session so you can see your other
> > sessions' history.
>
> Clever. But it seems like the GNU people ought to just fix the bug.
>
> --
> Todd
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>


More information about the Cialug mailing list