From 37b9bb1e4f52f2563680b59d194368c4376106a9 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Wed, 9 Jan 2013 10:23:48 +0530 Subject: [PATCH] Rollback #36. compdef is required by many plugins. compinit has to be initialized before loading any plugins, since most of the utilize `compdef`. --- antigen.zsh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index efec77c..aa32ff2 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -338,7 +338,6 @@ antigen-apply () { # TODO: Only load completions if there are any changes to the bundle # repositories. compinit -i - compdef _antigen antigen } antigen-list () { @@ -591,8 +590,13 @@ antigen () { https://github.com/robbyrussell/oh-my-zsh.git -set-default ADOTDIR $HOME/.antigen - # Load the compinit module. + # Load the compinit module. Required for `compdef` to be defined, which is + # used by many plugins to define completions. autoload -U compinit + compinit -i + + # Setup antigen's own completion. + compdef _antigen antigen } # Same as `export $1=$2`, but will only happen if the name specified by `$1` is -- 2.0.0