setopt APPEND_HISTORY SHARE_HISTORY INC_APPEND_HISTORY HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_SPACE local history_ignore=( "link-for-*" "mmfileget *" "sdcv *" "t *" "yt* *" arr t ) HISTORY_IGNORE="(${(j:|:)history_ignore})"