Автодополнение

This commit is contained in:
Andrei Astafev 2018-11-17 19:59:31 +03:00
parent 6c1fe655ff
commit aaf9ef9059

12
options.zsh Normal file
View File

@ -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