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

  • Let down by #phpstorm :-( no icon decorations on folders for version control status. Vote for it here: goo.gl/U6zRU 13 years 47 weeks ago
  • Having fun with #javascript, I mean #jquery, actually, I mean both :-p 13 years 47 weeks ago
  • Bitten by godaddy again, after a long time trying to make sense of my account I see I finally have nothing left on it. Bye bye! 13 years 48 weeks ago
  • ooh, jet profiler for mysql is pretty sweet 13 years 48 weeks ago
  • Here's some light friday afternoon reading, 26 Terabits per second: goo.gl/64ClB 13 years 48 weeks ago
  • A quick blog about setting up automated #Selenium testing with #Jenkins goo.gl/RQgaC 13 years 49 weeks ago
  • #ubuntu #gnome #canonical What features do you love that a KDE user should know about? Looking to add to my blog: goo.gl/Xmlk2 13 years 50 weeks ago
  • @philhawksworth I get the feeling you're going to start talking to yourself soon! 13 years 50 weeks ago
Oliver Polden