]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zsh/rc/005history-cfg.zsh
Ignore link-for-* commands
[dotfiles.git] / zsh / .zsh / rc / 005history-cfg.zsh
index 8ecf82bdd88ad7d07adfe9462b326443d88de575..8af96a6d83b1946546046ba80758d5972ba93f36 100644 (file)
@@ -1,3 +1,12 @@
 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=(
+    "link-for-*"
+    "mmfileget *"
+    "sdcv *"
+    "t *"
+    "yt* *"
+    arr
+    t
+)
+HISTORY_IGNORE="(${(j:|:)history_ignore})"