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

Re: Completion alias



Hallo Peter,

Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> =?UTF-8?Q?J=C3=B6rg?= Sommer wrote:
>> is it possible to tell the completion system, that two commands are the
>> same? mutt and mutt-ng take the same arguments, but the completion for
>> mutt-ng arguments is not enabled.
>
> compdef mutt-ng=mutt

Cool. This is what I've thought of.

> Actually, it doesn't matter how the "service" was defined, it just has
> to be registered as a completion, so the "CMD1=SERVICE" is a bit
> of a red herring, unless I'm missing something.

But how can I use this for a completion of a command with an argument,
i.e. agi should have the same completion as 'agt-get install'

Bye, Jörg.
-- 
Die meisten Menschen wollen lieber durch Lob ruiniert
als durch Kritik gerettet werden.



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