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

Re: zsh completion broken for file completion

From
Manlio Perillo <manlio.perillo@gmail.com>
Date
Apr 2, 2013, 12:47 UTC
Message-ID
<515AD352.9060105@gmail.com>
In-Reply-To
<CAMP44s3=pHAUHohgJxddVdXMRj-toWOEvKea-E02mEZPBLk25w@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Il 01/04/2013 11:29, Felipe Contreras ha scritto:
Show 20 quoted lines
> 
> 
> On Thu, Feb 28, 2013 at 12:59 PM, Manlio Perillo
> <manlio.perillo@gmail.com <mailto:manlio.perillo@gmail.com>> wrote:
> 
> 
>     [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.
> 
I'm using fpath as documented.

However I tested the script again, and now seems to work correctly. It is possible that in the past I was using an incorrect configuration.

Thanks   Manlio Perillo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlFa01IACgkQscQJ24LbaUQOmACghDC30GqXXPIExHOPl9HrrO1y BYgAn2QPAYvtsSAAiPpgMnmMRI3z0LE8 =kmm0 -----END PGP SIGNATURE-----

Previous: Junio C Hamano
Message 6 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.