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

  • Where is my parcel #homedeliverynetwork #hdnl You said it would be here between 9.38 and 12.38, it's now 12.48. 14 years 14 weeks ago
  • oh joy, that didn't take long. Debugging in IE, the pain begins. 14 years 14 weeks ago
  • New colleagues are only whelmed by links2 graphics mode, why would you want a text browser with images? #true 14 years 15 weeks ago
  • 1 pint Oliver has had two :-) 14 years 15 weeks ago
  • Oh my god PhpStorm is an amazing IDE! Everything I ever wanted netbeans and eclipse to be. 14 years 15 weeks ago
  • omg www.nowthatsmusic.com is definitely not the www.nowmusic.com that I built. 14 years 15 weeks ago
  • @philhawksworth lol, have you fixed that swap bug yet? 14 years 15 weeks ago
  • Watching Jamie's dream school and remembering how much fun it was to work with Nana @kwame25 not to mention how impressed. 14 years 15 weeks ago
Oliver Polden