From e8636d3d21b2a16c17bd39bd0843351644e0b19e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 29 Nov 2021 16:10:00 +0300 Subject: [PATCH] Arrayed HISTORY_IGNORE --- zsh/.zsh/rc/005history-cfg.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/.zsh/rc/005history-cfg.zsh b/zsh/.zsh/rc/005history-cfg.zsh index 8ecf82b..a07ac8a 100644 --- a/zsh/.zsh/rc/005history-cfg.zsh +++ b/zsh/.zsh/rc/005history-cfg.zsh @@ -1,3 +1,4 @@ setopt APPEND_HISTORY SHARE_HISTORY INC_APPEND_HISTORY HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_SPACE -HISTORY_IGNORE="(yt* *|t *|t|sdcv *|mmfileget *|arr)" +local history_ignore=("yt* *" "t *" t "sdcv *" "mmfileget *" arr) +HISTORY_IGNORE="(${(j:|:)history_ignore})" -- 2.44.0