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

  • http://t.co/oHKBnJn Dratman 13 years 36 weeks ago
  • 3 mobile email support not very fast! "We’ll get back to you within ten days" 13 years 36 weeks ago
  • Just learned about the great advantages of 'Using Per-Table Tablespaces' for innodb mysql tables. goo.gl/Xm8KZ Reclaiming disk space & more 13 years 36 weeks ago
  • Oooh, Amazon Kindle cloud reader: http://t.co/RYRLw68 13 years 37 weeks ago
  • Just pointed out to my boss: "You spelt 'gobbledegook' wrong." 13 years 38 weeks ago
  • OMG! opening <div>s in various files, and closing </div>s in various other files! Time to clean that up! 13 years 39 weeks ago
  • How come only now after all these years am I using the #Drupal format_plural() and Drupal.formatPlural() functions? 13 years 39 weeks ago
  • Why do I see so much custom #drupal code with comments such as: "Sorry I had to do it like this because Drupal won't do it" Yes it will! 13 years 40 weeks ago
Oliver Polden