]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zsh/rc/005history-cfg.zsh
Arrayed HISTORY_IGNORE
[dotfiles.git] / 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})"