]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Arrayed HISTORY_IGNORE
authorSergey Matveev <stargrave@stargrave.org>
Mon, 29 Nov 2021 13:10:00 +0000 (16:10 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 27 Jan 2022 11:35:14 +0000 (14:35 +0300)
zsh/.zsh/rc/005history-cfg.zsh

index 8ecf82bdd88ad7d07adfe9462b326443d88de575..a07ac8a4c4b27a9b76f7452af2ac2d49b3dbbed2 100644 (file)
@@ -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})"