TagsEditHistoryDiscussion

delete-repeated-commands

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 Loading... Vote up! Vote down! Discussion

Last update:

svnwiki $Rev: 12966 $