user2037
January 24th, 2012, 03:13 PM
When opening multiple windows it seems the last window's latest Bash history appears first when scrolling back through commands with the up arrow. Is it possible to configure Bash and/or Gnome-terminal to mix the recent histories among all the windows (based on input time of the commands)?
erind
January 24th, 2012, 07:24 PM
Add these lines to .bashrc file in the home directory, if not already there:
shopt -s histappend
PROMPT_COMMAND="history -a" There's some good info in this link as well:
http://groups.google.com/group/comp.unix.shell/browse_thread/thread/90dc883275884edf/d5f01367bd7ccc52?lnk=gst&q=+Bash+History#d5f01367bd7ccc52
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.