zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: tla completion
@ 2004-03-11 15:49 Clint Adams
  2004-03-11 23:38 ` Jason McCarty
  0 siblings, 1 reply; 9+ messages in thread
From: Clint Adams @ 2004-03-11 15:49 UTC (permalink / raw)
  To: zsh-workers

This is primitive completion for tla.

Index: Completion/Unix/Command/_tla
===================================================================
RCS file: Completion/Unix/Command/_tla
diff -N Completion/Unix/Command/_tla
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_tla	11 Mar 2004 15:39:00 -0000
@@ -0,0 +1,9 @@
+#compdef tla
+
+subcmds=(${${${(M)${(f)"$(_call_program tla tla help)"}:#[ 	]* : *}% : *}##[ 	]##} )
+
+if (( CURRENT == 2 )); then
+     _describe -t commands 'tla command' compadd - "$subcmds[@]"
+else
+     _files
+fi


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-03-16 19:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11 15:49 PATCH: tla completion Clint Adams
2004-03-11 23:38 ` Jason McCarty
2004-03-12  0:11   ` Clint Adams
2004-03-12  0:26     ` Jason McCarty
2004-03-12  1:09       ` Clint Adams
2004-03-12  3:03         ` Jason McCarty
2004-03-12 10:23         ` Peter Stephenson
2004-03-16 16:48         ` Jason McCarty
2004-03-16 19:35           ` Clint Adams

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).