git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: zsh completion broken for file completion

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 1, 2013, 09:30 UTC
Message-ID
<CAMP44s2kqpusjweXN522oum9mw2vPg4==jGzd2c3CbHzU5E3=g@mail.gmail.com>
In-Reply-To
<512FA915.4080203@gmail.com>

On Thu, Feb 28, 2013 at 12:59 PM, Manlio Perillo <manlio.perillo@gmail.com> wrote:

Show 10 quoted lines
>
> [1] Basically, on my system I need the following change at the end of
>     the file:
>
>         -_git
>         +autoload -U +X compinit && compinit
>         +compdef _git git gitk
>
>     I don't know the reason, however; and it seems that it is a problem
>     only for me

Are you sourcing this script? If so, don't; do what is suggested at the top: use fpath to load it automatically.

Cheers.

-- Felipe Contreras

Previous: Manlio PerilloNext: Matthieu Moy
Message 3 of 6 in “zsh completion broken for file completion”
  1. Matthieu MoyFeb 28, 2013
  2. Manlio PerilloFeb 28, 2013
  3. Felipe ContrerasApr 1, 2013
  4. git-completion.zsh: define __gitcomp_file compatibility functionMatthieu Moy, Mar 5, 2013
  5. Junio C HamanoMar 5, 2013
  6. Manlio PerilloApr 2, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.