Re: [PATCH v2 1/1] doc: Change zsh git completion file name
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Oct 25, 2020, 03:40 UTC
- Message-ID
- <CAMP44s3UA-eVGJ1fwYwQCaJEKaD4MzDWds311bhdNPb1WFy01A@mail.gmail.com>
- In-Reply-To
- <20191014234439.GT29845@szeder.dev>
On Tue, Oct 15, 2019 at 3:22 AM SZEDER Gábor <szeder.dev@gmail.com> wrote:
Show 7 quoted lines
> Instructing users to copy our completion script to > '~/.zsh/git-completion.zsh' goes against this convention. > > More importantly, it appears that this is more than a mere convention, > maybe a requirement even; at least renaming our zsh completion script > to follow the convention (IOW following the current install > instructions) makes it work all of a sudden:
It is a requirement. If the file is not named '_git' it will never be autoloaded. The whole point of naming it that way is that it's loaded after typing 'git<tab>'.
-- Felipe Contreras