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

  • Very impressed with yell's 3D maps, simply amazing: http://www.yell.com/maps/ 15 years 9 weeks ago
  • So much compelling about #ubuntu #lucid, but at the same time, stuff I can't live without in #kubuntu that deffinitely isn't in ubuntu 15 years 11 weeks ago
  • Scratch that! #ubuntu does have mouse wheel volume control, just not with the thingy open ooooooh! 15 years 11 weeks ago
  • Ok, lucid #ubuntu still doesn't let you control volume with your mouse wheel via the system tray icon, dissappointing 15 years 11 weeks ago
  • The Gimp resynthesizer plugin came in handy quicker than I thought it would: http://2tu.us/1xx3 15 years 12 weeks ago
  • Ohh, content-aware fill in #CS5, oooooooohhhhhhh, resynthesizer already been in Gimp for years: http://2tu.us/1xx3 15 years 13 weeks ago
  • @drupalninja There's a module for that! http://2tu.us/1xw4 15 years 13 weeks ago
  • See, programming by trial and error is foolproof... if you don't give up. 15 years 14 weeks ago
Oliver Polden