From 9b095341234f65ac29f2759caffb863fe0806445 Mon Sep 17 00:00:00 2001 From: XTY Date: Sun, 5 Mar 2023 05:08:34 +0800 Subject: [PATCH] clean up `HISTIGNORE` * preserve commands with a leading space in Bash history as intended * remove the `&` pattern which serves the same purpose of `ignoredups` --- .bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 485ce3938b..a6fc40d777 100644 --- a/.bash_profile +++ b/.bash_profile @@ -60,7 +60,7 @@ export HISTFILESIZE=$HISTSIZE # big big history type shopt &> /dev/null && shopt -s histappend # append to history, don't overwrite it # Don't record some commands -export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear" +export HISTIGNORE="exit:ls:bg:fg:history:clear" # Save multi-line commands as one command shopt -s cmdhist