From c52d4db8e82c922c0df20e598d23492324e4efbc Mon Sep 17 00:00:00 2001 From: Stefan Gaiselmann Date: Tue, 16 Nov 2021 17:58:14 +0100 Subject: [PATCH] Corrected HISTCONTROL value in 00.bash.init. --- dot_bashrc.d/executable_00.bash.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_bashrc.d/executable_00.bash.init b/dot_bashrc.d/executable_00.bash.init index 6e4767a..b831406 100644 --- a/dot_bashrc.d/executable_00.bash.init +++ b/dot_bashrc.d/executable_00.bash.init @@ -1,11 +1,11 @@ #!/usr/bin/env bash # Bash Options -HISTCONTROL=ignoredups:ignorespace HISTSIZE=3000 HISTFILESIZE=3000 export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S " export HISTIGNORE=$'[ \t]*:&:[fb]g:exit:ls:ll:cd:pwd:history:z' -export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups +export HISTCONTROL=ignoreboth:erasedups # inspired (but not all commands used) by https://github.com/jdcapa/bashrc.d/blob/main/00.bash.init +# see also https://askubuntu.com/questions/15926/how-to-avoid-duplicate-entries-in-bash-history