Added HISTCONTROL to ignore duplicates.
This commit is contained in:
parent
f35b07766c
commit
58aa48f832
@ -6,5 +6,6 @@ HISTSIZE=3000
|
|||||||
HISTFILESIZE=3000
|
HISTFILESIZE=3000
|
||||||
export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
|
export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
|
||||||
export HISTIGNORE=$'[ \t]*:&:[fb]g:exit:ls:ll:cd:pwd:history:z'
|
export HISTIGNORE=$'[ \t]*:&:[fb]g:exit:ls:ll:cd:pwd:history:z'
|
||||||
|
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
|
||||||
|
|
||||||
# inspired (but not all commands used) by https://github.com/jdcapa/bashrc.d/blob/main/00.bash.init
|
# inspired (but not all commands used) by https://github.com/jdcapa/bashrc.d/blob/main/00.bash.init
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user