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

[PATCH v3 0/1] doc: Add a note about ~/.zsh/_git file

From
MGMax Belsky via GitGitGadget <gitgitgadget@gmail.com>
Date
Oct 15, 2019, 18:48 UTC
Message-ID
<pull.367.v3.git.1571165293.gitgitgadget@gmail.com>
In-Reply-To
<pull.367.v2.git.gitgitgadget@gmail.com>
Hey,

Today I've spent a few hours to understand why git-completion doesn't work in my zsh shell. It was because I thought ~/.zsh/_git should be a dictionary with git-completion.zsh file.

I think this change may save some hours for someone else.
Maxim Belsky (1):
  doc: Change zsh git completion file name
 contrib/completion/git-completion.zsh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
base-commit: 108b97dc372828f0e72e56bbb40cae8e1e83ece6
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-367%2Fmbelsky%2Fpatch-1-v3
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-367/mbelsky/patch-1-v3
Pull-Request: https://github.com/gitgitgadget/git/pull/367
Range-diff vs v2:
 1:  3f994f3b9a ! 1:  7919addea8 doc: Change zsh git completion file name
     @@ -8,9 +8,10 @@
      
          There is a small update to clarify it.
      
     -    Signed-off-by: Maxim Belsky <public.belsky@gmail.com>
          Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
          Helped-by: Junio C Hamano <gitster@pobox.com>
     +    Helped-by: SZEDER Gábor <szeder.dev@gmail.com>
     +    Signed-off-by: Maxim Belsky <public.belsky@gmail.com>
      
       diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
       --- a/contrib/completion/git-completion.zsh
     @@ -22,8 +23,8 @@
      -# 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
     -+# to your ~/.zshrc file:
     ++# '~/.zsh/' directory as '~/.zsh/_git' and then add the following to your
     ++# ~/.zshrc file:
       #
       #  fpath=(~/.zsh $fpath)
       
-- 
gitgitgadget
Previous: Felipe ContrerasNext: Maxim Belsky via GitGitGadget
Message 11 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.