From 34a6ec7a866d0875b84c32b92cba1745dd40d18b Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 15 Nov 2021 13:52:22 +0100 Subject: [PATCH] Prevent commands prefixed with space from history Prevent commands prefixed with spaces from being put into the history. --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zshrc b/.zshrc index fa4a7b9..6a2e1a0 100644 --- a/.zshrc +++ b/.zshrc @@ -14,6 +14,9 @@ setopt appendhistory beep nomatch notify autocd histignoredups correct autopushd # emacs keybindings bindkey -e +# do not put commands prefixed with space into history +setopt hist_ignore_space + # Prevent need to reset terminal ttyctl -f