From: Felipe Contreras Date: Wed, 27 Apr 2011 22:48:58 GMT Subject: Re: [PATCH] completion: move private shopt shim for zsh to __git_ namespace Message-ID: In-Reply-To: <20110427212704.GB18596@elie> On Thu, Apr 28, 2011 at 12:27 AM, Jonathan Nieder wrote: > 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