Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: #conpdef and compadd -> command regex



Thank Mikael

That works but I realise that I only want completion if the
command commences with a single underscore. How would I define a
regex for the command that needs to be satisfied for the compadd
rule to apply?

-- 
- Eric Smith
Mikael Magnusson said:
> On 15/06/2012, Eric Smith <es@xxxxxxxxxxxx> wrote:
> > I use #compdef and compadd in a function to define completion
> > that follows a command (or commands).
> >
> > How do I define a compadd that looks up in a list of files when there is no
> >
> > preceding command, so it is for the first token on the command
> > line?
> 
> -command-
> 
> -- 
> Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author