From: Felipe Contreras Date: Wed, 27 Apr 2011 01:22:21 GMT Subject: Re: [PATCH] Automatically autoload bashcompinit for ZSH, when needed Message-ID: In-Reply-To: On Wed, Apr 27, 2011 at 4:11 AM, Felipe Contreras wrote: > 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 Er, autoload -U +X. -- Felipe Contreras