develop#zsh: check of ~/.zcompdump exists
This commit is contained in:
parent
8f52fbd807
commit
c6cb43fc21
@ -28,6 +28,7 @@ bindkey -M vicmd 'j' history-substring-search-down
|
|||||||
#load compinit
|
#load compinit
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
|
|
||||||
|
if [[ -f ~/.zcompdump ]]; then
|
||||||
typeset -i updated_at=$(date +'%j' -r ~/.zcompdump \
|
typeset -i updated_at=$(date +'%j' -r ~/.zcompdump \
|
||||||
|| stat -f '%Sm' -t '%j' ~/.zcompdump)
|
|| stat -f '%Sm' -t '%j' ~/.zcompdump)
|
||||||
|
|
||||||
@ -37,6 +38,9 @@ if [ $(date +'%j') != $updated_at ]; then
|
|||||||
else
|
else
|
||||||
compinit -C
|
compinit -C
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
compinit -C
|
||||||
|
fi
|
||||||
|
|
||||||
# Case insens only when no case match; after all completions loaded
|
# Case insens only when no case match; after all completions loaded
|
||||||
zstyle ':completion:*' matcher-list \
|
zstyle ':completion:*' matcher-list \
|
||||||
|
Loading…
Reference in New Issue
Block a user