From: Mark Wooding Date: Wed, 2 May 2018 12:43:25 +0000 (+0100) Subject: dot/zshrc: Use `hist_ignore_space' instead of the `zshaddhistory' hack. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/68d1e406d7389bd4944d2fb57f9eb5b323e1a31b dot/zshrc: Use `hist_ignore_space' instead of the `zshaddhistory' hack. I think the behaviour -- retaining the command only for the next line -- is better. --- 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.