Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: tla completion
- X-seq: zsh-workers 19600
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: tla completion
- Date: Thu, 11 Mar 2004 10:49:08 -0500
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author