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

  • Did you know today is world peace day? http://t.co/5woHsuaQ 11 years 27 weeks ago
  • If you would like to donate to Sport relief and change people's lives the address is: http://t.co/riQCnQEq 12 years 1 week ago
  • Why big businesses cannot compete with small businesses: http://t.co/dNaQVJv3 12 years 4 weeks ago
  • The newest addition to my kindle: 'Know Me, Like Me, Follow Me' - Social networking for business by @pennypower http://t.co/hPVMRQKe 12 years 4 weeks ago
  • Using YouTube videos to improve your exposure and credibility http://t.co/rLKx6ByY 12 years 4 weeks ago
  • Penny power making great points about social media being personal #kpiday 12 years 5 weeks ago
  • @philhawksworth Yes, I lust after kate 12 years 6 weeks ago
  • Monday the 13th is the new Friday 13th. 12 years 6 weeks ago
Oliver Polden