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

  • search for 'search' on google.com and bing comes up first!?!?!?! 13 years 32 weeks ago
  • A genius, high value tip/test for #Drupal #continuousintegration with #Jenkins and #selenium if I do say so myself goo.gl/IGIy5 13 years 32 weeks ago
  • @philhawksworth Damn it! Someone beat me to it! 13 years 33 weeks ago
  • A short post I just wrote on setting up #Memcache for #Drupal: goo.gl/2VnUc 13 years 34 weeks ago
  • Seems ftp.drupal.org is down, but you can still download modules by hacking the download link to remove ftp. #drupal 13 years 34 weeks ago
  • dear #lazyweb #phpundercontrol ( #cruisecontrol ) or #jenkins for #drupal #continuousintegration 13 years 35 weeks ago
  • You've got to have some nuts to do this: goo.gl/TKqIe 13 years 35 weeks ago
  • http://t.co/q8CiVNc Dratman #drupal 13 years 36 weeks ago
Oliver Polden