Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion for aliased commands does not work
- X-seq: zsh-users 22058
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: completion for aliased commands does not work
- Date: Tue, 1 Nov 2016 06:29:03 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=u8HaHISaY0KzAQQooUG13djB6ncDQFKHtdth8ehndBA=; b=s0yidhtPD1xUHet7FEanFhDFV4nr81h4kNyIhVy/V4acymb8qihsH9DoTwVJ4jHXpB Jc9/AJWWrxgxo7xeHHvGtOhv1xTQXuYcAZaErLu4Qj3i+BlKO6Oxgv+Nv26mArVrl6V6 MVq6kNWez3iNkdiVEEUn6LaRITz+G+wVt1JnEOOUNvKhrPLdq38B8f8Dl6/4tH80MkXi EXE9+NhtsfzuAg9B3AndUM60S3a6Ma2WvwHjSDs8N6Gyt8pcc4NlOBrjKURWOT7XOjTS 9ZmwoitShOmZJC5MnS70ydvWsT6HWumCEsXxpOdOEwwOa4Rh3RzAkJJIHR5kshOKdA4f 8e2w==
- In-reply-to: <161031163337.ZM21662@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <5817C9F9.2010809__36345.4683371403$1477954133$gmane$org@gmx.ch> <20161031231212.GA7144@fujitsu.shahaf.local2> <161031163337.ZM21662@torch.brasslantern.com>
On Tue, Nov 1, 2016 at 12:33 AM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Oct 31, 11:12pm, Daniel Shahaf wrote:
> } Subject: Re: completion for aliased commands does not work
> }
> } Fourhundred Thecat wrote on Mon, Oct 31, 2016 at 23:47:21 +0100:
> } > alias diff='colordiff'
> } > diff --<TAB>
> } > /usr/bin/diff --<TAB>
> }
> } Completion "sees through" aliases. You'll find that with the above
> } alias, "diff <TAB>" and "colordiff <TAB>" behave the same way.
>
> That's actually not true. You have to "setopt complete_aliases" for
> completion to "see through". If for some reason you do not want to
> set that, THEN:
>
> } Therefore, define a completion for colordiff:
> }
> } compdef colordiff=diff
>
That's actually not true, setting complete_aliases makes completion
treat aliases as separate commands. :)
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author