Wire zcompdump into zplugin's handler, for better perf and accuracy
This commit is contained in:
parent
ad0d9f72f5
commit
ffa567b4d5
2 changed files with 4 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
||||||
typeset -A ZPLGM
|
typeset -A ZPLGM
|
||||||
ZPLG_HOME=$XDG_CACHE_HOME/zsh/zplugin
|
ZPLG_HOME=$XDG_CACHE_HOME/zsh/zplugin
|
||||||
ZPLGM[HOME_DIR]=$ZPLG_HOME
|
ZPLGM[HOME_DIR]=$ZPLG_HOME
|
||||||
|
ZPLGM[ZCOMPDUMP_PATH]=$XDG_CACHE_HOME/zsh/zcompdump
|
||||||
|
|
||||||
if [[ ! -f $ZPLG_HOME/bin/zplugin.zsh ]]; then
|
if [[ ! -f $ZPLG_HOME/bin/zplugin.zsh ]]; then
|
||||||
git clone https://github.com/psprint/zplugin $ZPLG_HOME/bin
|
git clone https://github.com/psprint/zplugin $ZPLG_HOME/bin
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
source $ZDOTDIR/zplugin
|
source $ZDOTDIR/zplugin
|
||||||
for f in $ZDOTDIR/interactive/*(N); source $f
|
for f in $ZDOTDIR/interactive/*(N); source $f
|
||||||
|
|
||||||
autoload -Uz compinit zrecompile
|
autoload -Uz zrecompile
|
||||||
compinit -d $XDG_CACHE_HOME/zsh/zcompdump
|
zpcompinit
|
||||||
([[ $_comp_dumpfile.zwc -nt $_comp_dumpfile ]] || zcompile $_comp_dumpfile) &!
|
([[ $ZPGLM[ZCOMPDUMP_PATH].zwc -nt $ZPGLM[ZCOMPDUMP_PATH] ]] || zcompile $ZPLGM[ZCOMPDUMP_PATH]) &!
|
||||||
|
|
||||||
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/*(N); source $f
|
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/*(N); source $f
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue