diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2022-11-05 14:55:11 -0700 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2022-11-05 14:55:11 -0700 |
commit | 04b8c052e5b624873b352889423c753ed1baf9c4 (patch) | |
tree | 78e14fe69e61d69709f31f91b7ae29fe8bc74477 /oh-my-zsh.sh | |
parent | 1a6dcd017dbf564058a729032de3db139fcf9c7e (diff) | |
parent | 80fdbc9b91a9acca42fb90065b5e64a9722978a7 (diff) | |
download | zsh-04b8c052e5b624873b352889423c753ed1baf9c4.tar.gz zsh-04b8c052e5b624873b352889423c753ed1baf9c4.tar.bz2 zsh-04b8c052e5b624873b352889423c753ed1baf9c4.zip |
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r-- | oh-my-zsh.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 925ee46aa..29d39ca23 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -67,7 +67,7 @@ fi fpath=("$ZSH/functions" "$ZSH/completions" $fpath) # Load all stock functions (from $fpath files) called below. -autoload -U compaudit compinit +autoload -U compaudit compinit zrecompile # Set ZSH_CUSTOM to the path where your custom config files # and plugins exists, or else we will use the default custom/ @@ -142,6 +142,9 @@ EOF fi unset zcompdump_revision zcompdump_fpath zcompdump_refresh +# zcompile the completion dump file if the .zwc is older or missing. +zrecompile -q -p "$ZSH_COMPDUMP" && command rm -f "$ZSH_COMPDUMP.zwc.old" + # Load all of the config files in ~/oh-my-zsh that end in .zsh # TIP: Add files you don't want in git to .gitignore for config_file ("$ZSH"/lib/*.zsh); do |