HISTCONTROL=ignoredups:erasedups
HISTFILE=~/.bash_history
HISTFILESIZE=5000
HISTSIZE=5000
shopt -s histappend
Append all above lines to ~/.bashrc and then
$ source ~/.bashrc
HISTCONTROL=ignoredups:erasedups
HISTFILE=~/.bash_history
HISTFILESIZE=5000
HISTSIZE=5000
shopt -s histappend
Append all above lines to ~/.bashrc and then
$ source ~/.bashrc
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″
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.