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

Andrew Denner linux-list at upeke.com
Wed Mar 19 20:35:38 CDT 2014


As was discussed at the meeting tonight, by default bash only writes the
last bash session running to the history blowing away any other instances.
Per
http://www.aloop.org/2012/01/19/flush-commands-to-bash-history-immediately/

If you add: "export PROMPT_COMMAND='history -a'" To your .bashrc file it
will append each command immediately to your bash history file

On Tuesday, March 18, 2014, Barry Von Ahsen <vonahsen at gmail.com> wrote:

> screen vs. tmux vs. byobu
>
> 7pm at Alliance
>
> http://www.cialug.org/?page_id=7&event_id=1030
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org <javascript:;>
> http://cialug.org/mailman/listinfo/cialug
>


More information about the Cialug mailing list