diff options
-rwxr-xr-x | zuwu.zsh | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |