From 68d1e406d7389bd4944d2fb57f9eb5b323e1a31b Mon Sep 17 00:00:00 2001 Message-Id: <68d1e406d7389bd4944d2fb57f9eb5b323e1a31b.1717687249.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 2 May 2018 13:43:25 +0100 Subject: [PATCH] dot/zshrc: Use `hist_ignore_space' instead of the `zshaddhistory' hack. Organization: Straylight/Edgeware From: Mark Wooding I think the behaviour -- retaining the command only for the next line -- is better. --- dot/zshrc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dot/zshrc b/dot/zshrc index 8af418a..29a2ed6 100644 --- a/dot/zshrc +++ b/dot/zshrc @@ -123,6 +123,7 @@ unsetopt beep setopt extendedglob unsetopt flow_control setopt hist_ignore_all_dups +setopt hist_ignore_space setopt ksh_glob setopt list_ambiguous setopt list_packed @@ -131,13 +132,6 @@ unsetopt menu_complete setopt notify setopt share_history -zshaddhistory () { - case "$1" in - " "*) return 2 ;; - *) return 0 ;; - esac -} - ###-------------------------------------------------------------------------- ### Finishing touches. -- [mdw]