Re: [PATCH] completion: add new zsh completion
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 30, 2012, 18:52 UTC
- Message-ID
- <7vy5spauqh.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4F267AC9.1080407@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 9 quoted lines
>> 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.As this split-file is about only zsh completion, it can be as non-POSIX as it wants, and it appears that zsh is not striving to be POSIX compliant, judging from Felipe's other messages.
Whatever works for zsh is just fine.