From 8922c0a021980a69df2234c554838f90b4c26bf0 Mon Sep 17 00:00:00 2001 From: Will Boyce Date: Tue, 8 Jan 2013 12:55:49 +0000 Subject: [PATCH] improve startup speed by only calling `compinit -i` once --- antigen.zsh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index e6eb2e0..efec77c 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -338,6 +338,7 @@ antigen-apply () { # TODO: Only load completions if there are any changes to the bundle # repositories. compinit -i + compdef _antigen antigen } antigen-list () { @@ -592,11 +593,6 @@ antigen () { # Load the compinit module. autoload -U compinit - - # Without the following, `compdef` function is not defined. - compinit -i - - compdef _antigen antigen } # Same as `export $1=$2`, but will only happen if the name specified by `$1` is -- 2.0.0