bash: don't save lines matching the previous history entry

This commit is contained in:
Rodolphe Breard 2013-04-01 22:18:46 +02:00
parent 0e53d8c78f
commit 9b3ce12bea

View file

@ -23,6 +23,9 @@ eval $(dircolors -b)
# append to the history file, don't overwrite it # append to the history file, don't overwrite it
shopt -s histappend shopt -s histappend
# don't save lines matching the previous history entry
export HISTCONTROL=ignoredups
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
# check the window size after each command and, if necessary, # check the window size after each command and, if necessary,