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

Re: [PATCH v2 1/1] doc: Change zsh git completion file name

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 15, 2019, 02:07 UTC
Message-ID
<xmqqimoqdann.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20191014234439.GT29845@szeder.dev>
SZEDER Gábor <szeder.dev@gmail.com> writes:
Show 14 quoted lines
>> -# The recommended way to install this script is to copy to '~/.zsh/_git', and
>> -# then add the following to your ~/.zshrc file:
>> +# The recommended way to install this script is to make a copy of it in
>> +# ~/.zsh/ directory as ~/.zsh/git-completion.zsh and then add the following
>
> These updated instructions don't work for me, following them gives me
> zsh's git completion instead of ours:
> ...
> 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:

Thanks for a dose of sanity. My "Helped-by" was about phrasing and had nothing with the name of the file, so it should be fixable without invalidating it ;-)

> -# The recommended way to install this script is to copy to '~/.zsh/_git', and
> -# then add the following to your ~/.zshrc file:
> +# The recommended way to install this script is to make a copy of it in
> +# ~/.zsh/ directory as ~/.zsh/git-completion.zsh and then add the following
    # The recommended way to install this script is to make a copy of it in
    # '~/.zsh/' directory as '~/.zsh/_git' and then add the following
Previous: SZEDER GáborNext: Felipe Contreras
Message 9 of 13 in “doc: Add a note about ~/.zsh/_git file”
  1. 0/1 doc: Add a note about ~/.zsh/_git fileMax Belsky via GitGitGadget, Oct 10, 2019
  2. 1/1 doc: Change zsh git completion file nameMaxim Belsky via GitGitGadget, Oct 10, 2019
  3. Johannes SchindelinOct 10, 2019
  4. Junio C HamanoOct 11, 2019
  5. 0/1 doc: Add a note about ~/.zsh/_git fileMax Belsky via GitGitGadget, Oct 11, 2019
  6. 1/1 doc: Change zsh git completion file nameMaxim Belsky via GitGitGadget, Oct 11, 2019
  7. Junio C HamanoOct 12, 2019
  8. SZEDER GáborOct 14, 2019
  9. Junio C HamanoOct 15, 2019
  10. Felipe ContrerasOct 25, 2020
  11. 0/1 doc: Add a note about ~/.zsh/_git fileMax Belsky via GitGitGadget, Oct 15, 2019
  12. 1/1 doc: Change zsh git completion file nameMaxim Belsky via GitGitGadget, Oct 15, 2019
  13. Junio C HamanoOct 16, 2019

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.