Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: =alias
- X-seq: zsh-workers 15590
- From: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: =alias
- Date: Tue, 07 Aug 2001 12:22:57 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <T55391fda68c0a88d01398@>
- Sender: kiddleo
Peter Stephenson wrote:
>
> I wrote:
> > Is there anybody out there who wouldn't shout for joy if we removed the
> > alias-lookup part of =-substitution so that it only expanded command paths?
>
> It seems not.
Good.
So we don't need to complete aliases in the equal context anymore.
What I think would be useful though is if equals expansion worked for
autoloaded functions, expanding to the full name of the file holding the
function. Or if that would cause problems, some sort of similar way such
as an option to functions or autoload?
Oliver
Index: Completion/Zsh/Context/_equal
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Context/_equal,v
retrieving revision 1.1
diff -u -r1.1 _equal
--- Completion/Zsh/Context/_equal 2001/04/02 11:22:55 1.1
+++ Completion/Zsh/Context/_equal 2001/08/07 11:17:20
@@ -1,9 +1,3 @@
#compdef -equal-
-local args
-
-args=( "$@" )
-
-_alternative -O args \
- 'commands:command:compadd -k commands' \
- 'aliases:alias:compadd -k aliases'
+_wanted commands expl command compadd -k commands
Messages sorted by:
Reverse Date,
Date,
Thread,
Author