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

  • Here you go @leisa 3.ly/cH6X 14 years 6 weeks ago
  • @leisa you need one of these: 3.ly/BVNU 14 years 6 weeks ago
  • Delving deep into the Drupal services module, where exactly, and on which side is my code failing? Do like a challenge tho! 3.ly/2AcM 14 years 6 weeks ago
  • Got out a new blank dvorak keyboard at my new place. Wasn't long to get the response I usually get :-) 14 years 6 weeks ago
  • @casablanca Budgens did it :-) Time for a bit of Urban Terror in a few minutes http://www.urbanterror.info 14 years 6 weeks ago
  • Beer O'Clock in an hour :-) ... oh :-( 14 years 6 weeks ago
  • I'm not religious but statements in the bible seem to have been accurate or at least reasonable for hundreds of years. 14 years 8 weeks ago
  • I clicked a link to this on another site. Is it a joke? http://protectyourpcdata.co.uk/PDF/Data_Loss_Quotes_and_Statistics.pdf 14 years 10 weeks ago
Oliver Polden