Add HIST_IGNORE_SPACE

This commit is contained in:
2024-06-16 18:18:11 +08:00
parent a1e8f2f9f9
commit 935da20ddf

View File

@@ -71,6 +71,7 @@ SAVEHIST=$HISTSIZE
setopt BANG_HIST # Treat the '!' character specially during expansion. setopt BANG_HIST # Treat the '!' character specially during expansion.
setopt HIST_BEEP # Beep when accessing nonexistent history. setopt HIST_BEEP # Beep when accessing nonexistent history.
setopt HIST_LEX_WORDS # parse quotes when parsing history setopt HIST_LEX_WORDS # parse quotes when parsing history
setopt HIST_IGNORE_SPACE # dont save commands starting with space
# set GPG_TTY # set GPG_TTY
if [ "$GPG_TTY" = "" ]; then if [ "$GPG_TTY" = "" ]; then