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

PATCH: tla completion



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