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

  • Ever wanted to create a CSS class or id from any old string in #Drupal? ctools_cleanstring() in the ctools module is your friend. 13 years 23 weeks ago
  • How to inspect the :active and :hover pseudo CSS style: http://t.co/zVANhKLp 13 years 24 weeks ago
  • @iainfarrell Good luck up north! 13 years 24 weeks ago
  • My most intriguing #Drupal utility modules out of 1030 for erm... Drupal 6, http://t.co/kmXV4qLp 13 years 24 weeks ago
  • #Chrome please can you check my hosts file before doing a search on an internet. Also, if I edit a url, yes that's still my local machine. 13 years 25 weeks ago
  • Seeing (not provided) in your Google Analytics?.. http://t.co/rSlpwm7U 13 years 25 weeks ago
  • Why SEO isn't evil http://t.co/MHh7ZHkK 13 years 25 weeks ago
  • @philhawksworth But that's unpossible! 13 years 26 weeks ago
Oliver Polden