Re: [PATCH] completion: move private shopt shim for zsh to __git_ namespace
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 27, 2011, 22:48 UTC
- Message-ID
- <BANLkTinKgubAeFy+mJ=hGdG8c-QXjyNTcA@mail.gmail.com>
- In-Reply-To
- <20110427212704.GB18596@elie>
On Thu, Apr 28, 2011 at 12:27 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 17 quoted lines
> Felipe Contreras wrote:
>> +++ b/contrib/completion/git-completion.bash
>> @@ -75,6 +75,10 @@
>>
>> if [[ -n ${ZSH_VERSION-} ]]; then
>> autoload -U +X bashcompinit && bashcompinit
>> +
>> + # 'words' has special meaning in zsh, and only typeset -h seems to
>> + # override that
>> + alias local="typeset -h"
>> fi
>>
>> case "$COMP_WORDBREAKS" in
>
> The above would change the meaning of "local" in the user's
> environment and in all shell snippets she sources later. Are you sure
> that's intended?Crap. I didn't realize that :(
I have been looking for a way to have local aliases or functions, but I can't find any.
-- Felipe Contreras