Improve successive startup time; fix conflict.
- Don't update completion dump if it has been updated within 24hrs. - Unload Completion for zsh bundled function mcd to prevent conflict. #594
This commit is contained in:
parent
ee30830241
commit
d69b67004e
1 changed files with 11 additions and 3 deletions
|
@ -1,6 +1,14 @@
|
|||
# load our own completion functions
|
||||
fpath=(~/.zsh/completion /usr/local/share/zsh/site-functions $fpath)
|
||||
|
||||
# completion
|
||||
autoload -U compinit
|
||||
compinit
|
||||
# completion; use cache if updated within 24h
|
||||
autoload -Uz compinit
|
||||
if [[ -n $HOME/.zcompdump(#qN.mh+24) ]]; then
|
||||
compinit -d $HOME/.zcompdump;
|
||||
else
|
||||
compinit -C;
|
||||
fi;
|
||||
|
||||
# disable zsh bundled function mtools command mcd
|
||||
# which causes a conflict.
|
||||
compdef -d mcd
|
||||
|
|
Loading…
Add table
Reference in a new issue