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...

  • @Casablanca Is javascript disabled in your browser? 14 years 7 weeks ago
  • Been listening to my loved #lastfm tracks for the past week via the chrome plugin goo.gl/kF48s and now my Recommended tracks are awesome! 14 years 7 weeks ago
  • @Casablanca I'm proud! 14 years 8 weeks ago
  • HTML5 Presentations make me happy, especially when they're about HTML5 goo.gl/Fx9Sp 14 years 9 weeks ago
  • @philhawksworth goo.gl/TLwWd 14 years 9 weeks ago
  • @philhawksworth for some reason I imagine you walking around with a monocle in one eye, pointing at code and stuff with a cane! 14 years 10 weeks ago
  • Ooh, the #ux prototyping in code bootcamp looks good http://www.uxbootcamp.org/ Go code! How about prototyping in #Drupal? 14 years 14 weeks ago
  • @markboulton You could do it with #Drupal n/o premium module goo.gl/JLUxN and the role sub module of Ubercart goo.gl/z4mxT goo.gl/dZ0SF 14 years 14 weeks ago
Oliver Polden