Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion within a function
On Wed, Dec 30, 2020 at 5:47 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Wed, Dec 30, 2020 at 2:19 PM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
> >
> > I don't know what that's supposed to do, but nothing happens when I
> > run: complete "g" (other than the fact that "g" is printed).
>
> I presumed
> compinit
> zmodload zsh/zpty
In a login shell or a script?
Using "autoload -U compinit && compinit" does make 'complete g' work
for me in a script, but not 'complete "git --"' for example.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author