Added HISTCONTROL to ignore duplicates.

This commit is contained in:
Stefan Gaiselmann 2021-05-07 07:43:43 +02:00
parent f35b07766c
commit 58aa48f832

View File

@ -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