Improve startup time, taken from https://github.com/sorin-ionescu/prezto/pull/1210
This commit is contained in:
parent
4f19700919
commit
4fdf4817bf
1 changed files with 9 additions and 1 deletions
|
@ -15,7 +15,15 @@ fi
|
||||||
fpath=("${0:h}/external/src" $fpath)
|
fpath=("${0:h}/external/src" $fpath)
|
||||||
|
|
||||||
# Load and initialize the completion system ignoring insecure directories.
|
# Load and initialize the completion system ignoring insecure directories.
|
||||||
autoload -Uz compinit && compinit -i
|
# Will only rebuild ~/.zcompdump once per day
|
||||||
|
autoload -Uz compinit
|
||||||
|
if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then
|
||||||
|
compinit
|
||||||
|
else
|
||||||
|
compinit -C
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Options
|
# Options
|
||||||
|
|
Loading…
Add table
Reference in a new issue