bash: don't save lines matching the previous history entry
This commit is contained in:
parent
0e53d8c78f
commit
9b3ce12bea
1 changed files with 3 additions and 0 deletions
3
.bashrc
3
.bashrc
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue