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

Re: completion: _normal after argument



Although the reply is only to one posting,
my thank goes to everybody who replied.

Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
>>
>> foo [lots of complicated options] CMD [shell-command with options]
>
> You can use _arguments -n.
> [...]
> Supposedly you don't even need to do that, however:
>
>    *:::message:action

Thanks a lot.
Indeed, the latter works in my case for the original question
(I just tried) but -n will be much more handy since it will allow
me to make the _normal completion conditional depending on CMD.



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