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

Re: =alias



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