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

2 Comments »

  1. codef0rmer said

    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″

  2. greenmang0 said

    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.

RSS feed for comments on this post · TrackBack URI

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.