summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-09-26 17:59:53 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-09-26 17:59:53 +0100
commitd1dff6a1cc5c505b96391dc609e648699a3a2046 (patch)
tree0070514fe7ddbd235200db6701a090a534c23beb
parent5cbd36c23ea40b6b14f0ed8a25685147fdeb5a81 (diff)
Add minimalist zsh completion thing
-rw-r--r--_tt11
1 files changed, 11 insertions, 0 deletions
diff --git a/_tt b/_tt
new file mode 100644
index 0000000..1f22eca
--- /dev/null
+++ b/_tt
@@ -0,0 +1,11 @@
+#compdef tt
+
+_tt() {
+_arguments \
+ '(-v --verbose)'{-v,--verbose}'[run tests verbosely]' \
+ '(-V --valgrind)'{-V,--valgrind}'[run tests with valgrind]' \
+ '(-m --monitor)'{-m,--monitor}'[run dbus-monitor on test bus]' \
+ '1::test:_files -g "*.py" -W "$(pwd)/$(tt -p)"'
+}
+
+_tt "$@"