Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Remove redundancies from `git` completion
- X-seq: zsh-workers 49368
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>, Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Remove redundancies from `git` completion
- Date: Thu, 2 Sep 2021 09:17:25 +0300
- Archived-at: <https://zsh.org/workers/49368>
- In-reply-to: <CAH+w=7aB4QALHV0X5Q0fHeQQw=q+a9yP5-Kv7rRn5iOd131xhg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDt9=VdVFqvvwUfXb8HBO_uxZAnaS7f_gtBTSHy_XLMWsg@mail.gmail.com> <CAHYJk3SpQ1KibJtbjOvEputdVL3XEeJywKewk-xxEgZxgLXowg@mail.gmail.com> <CAHLkEDtu9ABHKC4JXn9s3DkKvh7me=s1x=EBV3ibr+dnUwbj9w@mail.gmail.com> <CAHYJk3Qf5W2TY0u03bS7wUzR9Q8iXtwmpDRG8o8nTRCaBgMT1g@mail.gmail.com> <CAHLkEDu=hm77q1idtFg5PhPeh9FmxrvPOgrutz-Eaz0UBM_g9Q@mail.gmail.com> <20210901140327.GB27958@tarpaulin.shahaf.local2> <CAH+w=7aB4QALHV0X5Q0fHeQQw=q+a9yP5-Kv7rRn5iOd131xhg@mail.gmail.com>
On Wed, Sep 1, 2021 at 9:23 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Wed, Sep 1, 2021 at 7:04 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > Anyone who wants to override them will still be able to do «autoload +X
> > _git && _git && _git-foo() { … }» (or a better solution which someone
> > will probably post in reply to this one).
>
> It would be nice if e.g. «autoload $HOME/gitfuncs/_git_foo» were
> sufficient, but the explicit definition of _git_foo inside _git will
> clobber that autoload.
Moving all _git_foo functions from the _git file into separate,
#autoload files would solve that.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author