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

Remove your ZSH completion in favor of the completion script distributed and maintained by ZSH

From
DBDoron Behar <doron.behar@gmail.com>
Date
Jul 7, 2024, 11:53 UTC
Message-ID
<mrn75pj663u6ikkwfnoq6c342l7w5plfeju4ji7norsmlzx4jn@3se3fmuqes4p>
Hello,

Today I wanted to use some cool features of the ZSH tab completion function that ZSH provides[1]. Only after half an hour of trying to debug why something didn't work for me, I noticed that I'm not even loading ZSH's git tab completion, but I'm loading the implementation distributed by Git, which is undoubtedly inferior in terms of features.

ZSH completion is almost always distributed with every distribution of ZSH, so there is no need for the two projects to maintain two completion functions for the same program :).

[1]: https://github.com/zsh-users/zsh/blob/zsh-5.9/Completion/Unix/Command/_git

Doron.
Next: Andreas Schwab
Message 1 of 6 in “Remove your ZSH completion in favor of the completion script distributed and maintained by ZSH”
  1. Doron BeharJul 7, 2024
  2. Andreas SchwabJul 7, 2024
  3. Doron BeharJul 7, 2024
  4. brian m. carlsonJul 7, 2024
  5. Doron BeharJul 7, 2024
  6. rsbecker@nexbridge.comJul 7, 2024

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.