* PATCH: _functions for "functions"
@ 1999-07-21 16:03 Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 1999-07-21 16:03 UTC (permalink / raw)
To: zsh-workers
I suppose this isn't strictly correct, since "functions" also takes +/-[tum],
but it seems silly not to complete anything at all for it.
Index: Completion/Builtins/_functions
===================================================================
--- _functions 1999/03/29 22:35:28 1.2
+++ _functions 1999/07/21 15:56:24
@@ -1,3 +1,3 @@
-#compdef unfunction
+#compdef functions unfunction
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: _functions for "functions"
1999-07-22 16:54 Oliver Kiddle
@ 1999-07-23 15:54 ` Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 1999-07-23 15:54 UTC (permalink / raw)
To: zsh-workers
On Jul 22, 5:54pm, Oliver Kiddle wrote:
} Subject: Re: PATCH: _functions for "functions"
}
} Bart Schaefer wrote:
}
} > [...] it seems silly not to complete anything at all for ["functions"].
}
} Exactly the same is applicable for aliases.
Not quite true, since with "functions" you can't define anything, all you
can do is print what you already have. With "alias" the chances are pretty
good that you're creating something from scratch and don't really want one
of the existing names -- in fact, it might make more sense to complete
command names on the assumption that you want the alias to override one.
That isn't necessarily an objection to using your patch in the meantime.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: _functions for "functions"
@ 1999-07-22 16:54 Oliver Kiddle
1999-07-23 15:54 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 1999-07-22 16:54 UTC (permalink / raw)
To: zsh-workers
Bart Schaefer wrote:
> I suppose this isn't strictly correct, since "functions" also takes +/-[tum],
> but it seems silly not to complete anything at all for it.
Exactly the same is applicable for aliases. The patch is hopefully right
- I just edited Bart's. It might actually be better to do a separate
compdef function which completes with an '=' suffix for the alias
command.
Oliver Kiddle
Index: Completion/Builtins/_aliases
===================================================================
--- _aliases 1999/03/29 22:35:28 1.2
+++ _aliases 1999/07/21 15:56:24
@@ -1,3 +1,3 @@
-#compdef unalias
+#compdef alias unalias
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-07-23 15:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-21 16:03 PATCH: _functions for "functions" Bart Schaefer
1999-07-22 16:54 Oliver Kiddle
1999-07-23 15:54 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).