delete-repeated-commands
Fri Nov 9 13:48:56 2007
Sometimes you repeat commands, you write them more than once and it is annoying to find out how they corrupt your history.
export HISTCONTROL=erasedups
It seems this option is only available since Bash 3. Note that duplicates are only removed from the history that is kept in memory. At exit duplicated commands will make it to the bash history.
Contributed by azul
Discussion
Last update: