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

  • A great post about how the education system doesn't teach us how to be successful and follow our passions http://t.co/GsOpEUhj 12 years 20 weeks ago
  • @mattfarina how about em? 12 years 21 weeks ago
  • More about Omega here: http://t.co/kT7p1QSb 12 years 21 weeks ago
  • Delta + Omega + Context is probably one of the best things to happen to Drupal since Views 12 years 21 weeks ago
  • Wow! Just did a fresh install of Kubuntu Oneiric and I'm astonded. Very fast, very nice and lots of "oooh that's nice" 12 years 22 weeks ago
  • A great infographic about how Google works: http://t.co/dyZgxu3E 12 years 22 weeks ago
  • Just received my nexus 9000 silent mouse. First impressions, verrrrry nice, perhaps should have bought the 8000 tho: http://t.co/CzJB31bR 12 years 22 weeks ago
  • I've barely used GIT but already SVN seems archaic 12 years 22 weeks ago
Oliver Polden