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

  • Send or Forward module? #Drupal 15 years 24 weeks ago
  • Lol it's Friday: "It's not often you need to wipe and talk at the same time." 15 years 24 weeks ago
  • @timmillwood Looks like what you want exists but for Adriod http://2tu.us/1g6i 15 years 24 weeks ago
  • @drupalninja - I subscribe to the drupal modules feeds http://2tu.us/1fp5 15 years 24 weeks ago
  • @leisa Have you got some sort of cron functionality set up? 15 years 26 weeks ago
  • Enjoying the comments from @philhawksworth and @casablanca about my open source, drunken, Jedi, Rainman, mind, memory tricks last night 15 years 38 weeks ago
  • @philpeace, me too 15 years 40 weeks ago
  • Great article why a company moved from Joomla to Drupal http://2tu.us/uyn 15 years 40 weeks ago
Oliver Polden