Maintaining Bash History across all the terminals

HISTCONTROL=ignoredups:erasedups
HISTFILE=~/.bash_history
HISTFILESIZE=5000
HISTSIZE=5000
shopt -s histappend

Append all above lines to ~/.bashrc and then
$ source ~/.bashrc

Advertisements

2 thoughts on “Maintaining Bash History across all the terminals

  1. codef0rmer

    Hey Abhi,

    It did not work for it. I am using Yakuake and here is my ubuntu details:
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=11.10
    DISTRIB_CODENAME=oneiric
    DISTRIB_DESCRIPTION=”Ubuntu 11.10″

    Reply
  2. greenmang0 Post author

    as I mentioned in the post …. put those variables in your “~/.bashrc” and execute command “source ~/.bashrc” … It is likely that those variables are already defined in your “~/.bashrc”, so you can just edit them as well.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s