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

  • Holy **** Google #chrome is fast with Web Outlook 15 years 2 weeks ago
  • @gavinbrook @casablanca You could buy a better mac and put #ubuntu on it and then put project on it 15 years 3 weeks ago
  • I dream of a cross between, #Eclipse, #netbeans, #textmate, #kate and #kdevelop 15 years 3 weeks ago
  • Nothing better than a shish kebab after a long cycle ride home in the rain. Extra chilies please! 15 years 4 weeks ago
  • @philpeace Apparently in the Qwerty keyboard, the letters t-y-p-e-w-r-i-t-er are all on the top row to allow sales men to type it quickly. 15 years 5 weeks ago
  • Anybody know how to enable a views block programattically? #drupal 15 years 5 weeks ago
  • Nice, especially like the <new [content type]> option too ♻ @drupalninja: menu editor module: http://drupal.org/project/menu_editor #drupal 15 years 6 weeks ago
  • You know CSS hasn't been written correctly when you have to write more for the same thing on a different page. 15 years 6 weeks ago
Oliver Polden