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