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})"