Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion for aliased commands does not work
- X-seq: zsh-users 22056
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Fourhundred Thecat <400thecat@xxxxxx>
- Subject: Re: completion for aliased commands does not work
- Date: Mon, 31 Oct 2016 23:12:12 +0000
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=anLeBdwyK2aVY/+m2Dtvrc+vp2U=; b=bW7K/T7BZj3fbk4C4hz97 tdDc3P6C9mSSz79O5EQEh7/NDvJE2KaGSN7pUySftz825n3iYwJ4pN1YZagR0zzH BQy1ILkcUlcSNeV6yePT+FW0xgmPgfO9aj9PFE/S/TsruFIldcTIn1i0ZBaYT28/ VYcw/dl5+vfw2qFdV0KKos=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=anLeBdwyK2aVY/+m2Dtvrc+vp2U=; b=Do5k6VBvvVKsa2wtmFR+ JyoAQO8hC+tcNZD2RjoDYtFVS98G/YZg0Fj2+EQZ7W5hRYdzO10VDn0NibqlROuA lrnKpdvu1Owa52Tx+JytT+62nyj1I78K1fJgAS72IXrlhxTfzOpAsd5mHt+FggWU Nr4M0Hody7DkxKj8/yif+KM=
- In-reply-to: <5817C9F9.2010809__36345.4683371403$1477954133$gmane$org@gmx.ch>
- 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>
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.
Therefore, define a completion for colordiff:
compdef colordiff=diff
Messages sorted by:
Reverse Date,
Date,
Thread,
Author