Yakuake terminal not saving bash history

I love KDE and Kubuntu. I also love Yakuake for quick access to a terminal however one thing that's always bugged me is the fact that it doesn't store your command history when you exit.

I've just found the ideal solution:
In your .bashrc file (create it in your home directory if it doesn't exist already) add:

shopt -s histappend
PROMPT_COMMAND='history -a'

Now, the history in an active session will act the same as always has - one session's history will not interfere with another existing session but whenever you start a new session, whether that's in a pane, tab or even another terminal such as Konsole, the history will be available from all terminals.

It might sound complicated but this behaviour is exactly what you would want and expect and is the same as how any other terminal behaves.

Post new comment

By submitting this form, you accept the Mollom privacy policy.

User login

Author of...

  • The A-Team, a bit annoying but enjoyable. Why did they not play the classic soundtrack?! 14 years 49 weeks ago
  • Google maps track of my solo flight http://is.gd/dHTlr 14 years 50 weeks ago
  • First solo flight, ride to work voucher arrived. My shiny new bike awaits. It's been a good day. Night out to finish it off I think. 14 years 50 weeks ago
  • Successfully just did my first glider solo! 14 years 50 weeks ago
  • @leisa not the one here?! How quick is google! http://bit.ly/9e742A 14 years 50 weeks ago
  • A quick blog about typography and ligatures: http://oliverpolden.com/balancing-seo-and-design-ligatures 15 years 1 week ago
  • Going back to #kubuntu from #ubuntu. File already exists: Cancel, Skip, Replace, where is rename?! http://bit.ly/aYWWYk 15 years 2 weeks ago
  • less than a month to go until Microsoft stop supporting IE6 Wohoo! http://support.microsoft.com/gp/lifesupsps/#Internet_Explorer 15 years 3 weeks ago
Oliver Polden