Results 1 to 2 of 2

Thread: Preserve Bash History Among Multiple Windows?

  1. #1
    Join Date
    Dec 2006
    Beans
    Hidden!

    Preserve Bash History Among Multiple Windows?

    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)?

  2. #2
    Join Date
    Dec 2009
    Beans
    195

    Re: Preserve Bash History Among Multiple Windows?

    Add these lines to .bashrc file in the home directory, if not already there:

    Code:
    shopt -s histappend 
    PROMPT_COMMAND="history -a"
    There's some good info in this link as well:

    http://groups.google.com/group/comp....f01367bd7ccc52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •