Can anyone confirm if by setting the following environmental variables under Debian Lenny, it will make previous history entries not be saved? I'm using GNU bash, version 3.2.39(1)-release.

export HISTCONTROL=ignoreboth
export HISTSIZE=500

I have added them to my /etc/bash.bashrc file but I keep getting repeated commands.

link|improve this question
feedback

1 Answer

Use erasedups instead! It work for me!

export HISTCONTROL=erasedups

If you need more options separate them with:

export HISTCONTROL=ignorespace:erasedups
link|improve this answer
feedback

Your Answer

 
or
required, but never shown