Subject: Re: [PATCH] completion: add new zsh completion

From: Johannes Sixt <[email-masked]>
Date: Mon, 30 Jan 2012 12:11:05 +0100

Am 1/30/2012 9:39, schrieb Matthieu Moy:
> Felipe Contreras <[email-masked]> writes:
> 
>> +ZSH_VERSION='' . /usr/share/git/completion/git-completion.bash
> 
> Probably stating the obvious, but this path shouldn't be hardcoded.
> 
> Something along the lines of
> 
> ZSH_VERSION='' . $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
> 
> should do it (mostly untested, and written by a non-ZSH expert).

Moreover, if zsh is POSIX compliant, the value of ZSH_VERSION will be an
empty string after this statement. That may or (more likely) may not be
what you want.

-- Hannes