Re: [PATCH] Automatically autoload bashcompinit for ZSH, when needed
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 27, 2011, 01:11 UTC
- Message-ID
- <BANLkTindtTVcLetYs1wJ0K9BcQO7YNYpvw@mail.gmail.com>
- In-Reply-To
- <1303849690-20894-1-git-send-email-mstormo@gmail.com>
On Tue, Apr 26, 2011 at 11:28 PM, Marius Storm-Olsen <marius@storm-olsen.com> wrote:
Show 6 quoted lines
> 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 <mstormo@gmail.com> > ---
Show 5 quoted lines
> +if [[ -n ${ZSH_VERSION-} ]]; then
> + if ! bashcompinit >/dev/null 2>&1; then
> + autoload -U bashcompinit
> + bashcompinit
> + fiHow about this instead? autoload -UX bashcompinit && bashcompinit
-- Felipe Contreras