aboutsummaryrefslogtreecommitdiffstats
path: root/zuwu.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zuwu.zsh')
-rwxr-xr-xzuwu.zsh10
1 files changed, 8 insertions, 2 deletions
diff --git a/zuwu.zsh b/zuwu.zsh
index 4061256..0257f71 100755
--- a/zuwu.zsh
+++ b/zuwu.zsh
@@ -24,8 +24,9 @@ eval_append() {
<<<"$2" >> "$1"
eval "$2"
}
-if ! which compinit >/dev/null 2>/dev/null && ! grep compinit ~/.zshrc >/dev/null 2>/dev/null; then
- eval_append ~/.zshrc "$(<<EOF
+zuwu_compinstall() {
+ if ! which compinit >/dev/null 2>/dev/null && ! grep compinit ~/.zshrc >/dev/null 2>/dev/null; then
+ eval_append ~/.zshrc "$(<<EOF
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored _approximate
zstyle ':completion:*' format 'Completing %d'
@@ -43,6 +44,11 @@ compinit
EOF
)"
+ fi
+}
+if [[ "$_ZUWU_HYPERFAST" == "" ]]; then
+ zuwu_compinstall
+ unset -f zuwu_compinstall
fi
# ZSH Env Setup