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

Re: [PATCH] Fix zsh installation instructions

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 27, 2020, 20:00 UTC
Message-ID
<xmqqwnzbbfsi.fsf@gitster.c.googlers.com>
In-Reply-To
<CAKU+SVKad4q-2tTrYXa+DJBz5UJOtndEe3-4Uvnd5GZ92543ng@mail.gmail.com>
Лёша Огоньков  <lesha.ogonkov@gmail.com> writes:
Show 17 quoted lines
> On Tue, 27 Oct 2020 at 11:32, Stefan Haller <lists@haller-berlin.de> wrote:
>>
>> On 25.10.20 4:29, Felipe Contreras wrote:
>> >> The other hunk (adding compinit) is not so important to me; I suppose it
>> >> was not in the original version because most zsh users already have this
>> >> in their .zshrc anyway. But it's not wrong, and doesn't hurt to have
>> >> here, I guess.
>> >
>> > If you don't have compinit, then how is the '_git' script being loaded
>> > in the first place?
>>
>> I didn't say it's unnecessary to have it in your .zshrc. I just said
>> it's maybe unnecessary to document it here because most zsh users have
>> it in their .zshrc already anyway.
>
> As an inexperienced zsh user it took me ages to understand why the
> whole thing is not working.

So,... even though it may look to more experienced zsh users that it is unnecessary to document it in this file, in your opinion, it is a good idea to mention "compinit" to help less experienced users?

In any case, the patch in question is the only thing in flight that conflicts with Felipe's 29 patch series, and the change to zstyle line is common between both efforts, so it is just between adding the "autoload -Uz compinit && compinit" near the fpath=(...) thing or leaving it out.

I'll let those who know zsh to figure it out. I suspect that the resolution would be either to ask Felipe to rebase his on yours, rebase yours on top of Felipe's, or just drop yours (if "autoload" thing is unnecessary as Stefan suspects---I cannot tell what Felipe wants to suggest by his response, between "unless you have compinit you wouldn't be using this script so why write it?" and "your users need to be taught about the need _somehow_, so why not make this the place to do so?").

Thanks.
Previous: Лёша ОгоньковNext: Felipe Contreras
Message 9 of 17 in “Fix zsh installation instructions”
  1. Fix zsh installation instructionsAlexey via GitGitGadget, Jul 2, 2020
  2. Junio C HamanoJul 6, 2020
  3. Stefan HallerOct 14, 2020
  4. Junio C HamanoOct 16, 2020
  5. Felipe ContrerasOct 25, 2020
  6. Stefan HallerOct 27, 2020
  7. Stefan HallerOct 27, 2020
  8. Лёша ОгоньковOct 27, 2020
  9. Junio C HamanoOct 27, 2020
  10. Felipe ContrerasOct 28, 2020
  11. Junio C HamanoOct 29, 2020
  12. Junio C HamanoOct 29, 2020
  13. Felipe ContrerasNov 2, 2020
  14. Felipe ContrerasNov 2, 2020
  15. Junio C HamanoNov 3, 2020
  16. Junio C HamanoNov 2, 2020
  17. Felipe ContrerasOct 28, 2020

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.