Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

Use erasedups instead! It work for me!

export HISTCONTROL=erasedups

If you need more options separate them with:

export HISTCONTROL=ignorespace:erasedups
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.