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

  • Wohoo, got my first #selenium login test running from #jenkins/#hudson 13 years 50 weeks ago
  • That's a really annoying ad, thanks #microsoft goo.gl/oX62O 13 years 50 weeks ago
  • #windows #mac #linux Can you turn your volume up/down using your mouse wheel on your system tray icon? Can you mute it with middle click? 13 years 50 weeks ago
  • Just received my Web Designer's Idea Book. Very worthwhile investment, although there's a two volume set I should have bought! 13 years 50 weeks ago
  • Interesting article about click distribution over search results: goo.gl/WOBRU #seo 13 years 51 weeks ago
  • Trying to find the apache vhost configuration for a site? apache2ctl -S 13 years 51 weeks ago
  • One small step for Google, one giant leap for IE6, Chrome Frame without needing admin rights: goo.gl/kBkEs /via @lmjabreu 13 years 51 weeks ago
  • @philhawsworth @casablanca @a_alfredo suddenly having a big pang of fussball mourning 13 years 51 weeks ago
Oliver Polden