diff --git a/options.zsh b/options.zsh new file mode 100644 index 0000000..88aac79 --- /dev/null +++ b/options.zsh @@ -0,0 +1,12 @@ +# Автодополнение +autoload -Uz compinit + +typeset -i updated_at=$(date +'%j' -r ~/.zcompdump 2>/dev/null || stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null) +if [ $(date +'%j') != $updated_at ]; then + compinit -i +else + compinit -C -i +fi + +zmodload -i zsh/complist +