From aaf9ef90595931c57f2067130db4ede54c5a1d21 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 17 Nov 2018 19:59:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=B4=D0=BE=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 options.zsh 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 +