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 @philhawksworth ohhhh, ahhhh, argh! 14 years 4 weeks ago
  • What the? Updating two packages on Kubuntu... 4 minutes remaining... oh, one of them is #Skype. 14 years 4 weeks ago
  • Thanks @gavinbrook Seems #woopra is the only one that does more than monitoring. The tagging users feature looks very useful. 14 years 4 weeks ago
  • Any votes for: #woopra #chartbeat #mixpanel or #clicky or any other #realtimeanalytics suggestions? 14 years 4 weeks ago
  • Ohh, just having a look at the git instructions for my own Drupal project. Learning a lot about git in the process : -) goo.gl/ZKBo7 14 years 4 weeks ago
  • @philhawksworth @philpeace I'm slowly moving all my sites off Godaddy too but they don't have a proper way of transferring .co.uk sites!!! 14 years 4 weeks ago
  • enjoying a bit of javascript but what am I doing at late so work? 14 years 5 weeks ago
  • [GitHub] theteam added you to a team, lol 14 years 5 weeks ago
Oliver Polden