On Tue, Apr 11, 2023 at 10:48:11AM -0400, Chris Murphy wrote: > Hi, > > For a long time I've noticed lost history from multiple Terminal tab/windows. > It seems like the last tab or window to close is the history that gets > written to .bash_history, and everything else is just lost. > > Somehow I found this: > https://web.archive.org/web/20090815205011/http://www.cuberick.com/2008/11/update-bash-history-in-realtime.html > > I've implemented the suggested two line change to .bash_profile: > > # User specific environment and startup programs > shopt -s histappend > PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
> The resulting behavior appears to be shells still have their own unique > histories while active. But once closed, their histories become merged > (interlaced based on the time they were issued?) and available when a new > shell is created. > > I think this would be a pretty cool yet subtle Fedora 39 feature. However, I'm glad that you've found something that you like, but please don't mess with the default. I don't need extra I/O on every command, and for other reasons prefer the current behaviour. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue