From ce981c9e1b52e43482d4e565bcf40be217b6c7da Mon Sep 17 00:00:00 2001 From: Flinner Date: Fri, 11 Mar 2022 23:47:28 +0300 Subject: [PATCH] feat: prepending space removes command from zsh history --- zsh/.zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 85e4ab5..e6470b1 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -69,6 +69,7 @@ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' setopt HIST_IGNORE_ALL_DUPS # do not put duplicated command into history list +setopt HIST_IGNORE_SPACE # Remove commands from history when the first character is a space setopt HIST_SAVE_NO_DUPS # do not save duplicated command setopt HIST_REDUCE_BLANKS # remove unnecessary blanks setopt INC_APPEND_HISTORY_TIME # append command to history file immediately after execution