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

  • Yes. If you want to torture me put me on a locked down windows computer with a locked down network and no power for a day. 15 years 16 weeks ago
  • can someone please #invent a mobile phone where the camera can double as an optical mouse 15 years 18 weeks ago
  • @philhawksworth don't you mean thank goodness for @oliverpolden too :p 15 years 18 weeks ago
  • What's #Debian like nowadays compared to #Ubuntu ? 15 years 18 weeks ago
  • @gavman80s Pidgin will do all that and more and has done for years: http://2tu.us/1pha 15 years 18 weeks ago
  • that doesn't work if no other checkboxes are checked by default #drupal contact-us?edit[submitted][mycheckboxes][0]=mycheckbox 15 years 21 weeks ago
  • ahh, something like: contact-us?edit[submitted][mycheckboxes][0]=mycheckbox 15 years 21 weeks ago
  • Is it possible to use the prepopulate module to check a checkbox on a webform? #drupal 15 years 21 weeks ago
Oliver Polden