Reduce startup time a teeny bit more by compiling the zcompdump file in the background

This commit is contained in:
Danielle McLean 2016-10-20 09:12:53 +11:00
parent 7ccb1a7790
commit 48936c6915
No known key found for this signature in database
GPG key ID: CC91589719027E94
3 changed files with 7 additions and 5 deletions

View file

@ -1 +1,2 @@
for f in $ZDOTDIR/login/*(-.N); source $f
#! zsh
for f in $ZDOTDIR/login/*(N); source $f

View file

@ -1 +1 @@
for f in $ZDOTDIR/all/*(-.N); source $f
for f in $ZDOTDIR/all/*(N); source $f

View file

@ -1,7 +1,8 @@
source $ZDOTDIR/zplugin
for f in $ZDOTDIR/interactive/*; [[ -f $f ]] && source $f
for f in $ZDOTDIR/interactive/*(N); source $f
autoload -Uz compinit
autoload -Uz compinit zrecompile
compinit -d $XDG_CACHE_HOME/zsh/zcompdump
([[ $_comp_dumpfile.zwc -nt $_comp_dumpfile ]] || zcompile $_comp_dumpfile) &!
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/*(-.N); source $f
[[ -o login ]] && for f in $ZDOTDIR/interactive+login/*(N); source $f