From: Felipe Contreras Date: Wed, 27 Apr 2011 01:11:26 GMT Subject: Re: [PATCH] Automatically autoload bashcompinit for ZSH, when needed Message-ID: In-Reply-To: <1303849690-20894-1-git-send-email-mstormo@gmail.com> On Tue, Apr 26, 2011 at 11:28 PM, Marius Storm-Olsen wrote: > If bashcompinit has not already been autoloaded, do so > automatically, as it is required to properly parse the > git-completion file with ZSH. > > Signed-off-by: Marius Storm-Olsen > --- > +if [[ -n ${ZSH_VERSION-} ]]; then > +       if ! bashcompinit >/dev/null 2>&1; then > +               autoload -U bashcompinit > +               bashcompinit > +       fi How about this instead? autoload -UX bashcompinit && bashcompinit -- Felipe Contreras