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

PATCH: mtr completion



Completion for Matt's traceroute.
There could be better handling of option exclusivity, and -a could
attempt to get a list of local interface IPs.

Index: Completion/Unix/Command/_mtr
===================================================================
RCS file: Completion/Unix/Command/_mtr
diff -N Completion/Unix/Command/_mtr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_mtr	11 Mar 2004 21:55:04 -0000
@@ -0,0 +1,28 @@
+#compdef mtr
+
+_arguments -C \
+	'(--help)-h[help]' \
+	'(-h)--help' \
+	'(--version)-v[version]' \
+	'(-v)--version' \
+	'(--report)-r[report]' \
+	'(-r)--report' \
+	'(--report--cycles)-c[report cycles]:count:' \
+	'(-c)--report-cycles:count:' \
+	'(--psize)-p[packet size]:packet size in bytes:' \
+	'(-p)--psize:packet size in bytes:' \
+	'(--curses)-t[curses]' \
+	'(-t)--curses' \
+	'(--no-dns)-n[no dns]' \
+	'(-n)--no-dns' \
+	'(--gtk)-g[gtk]' \
+	'(-g)--gtk' \
+	'(--split)-s[split]' \
+	'(-s)--split' \
+	'(--raw)-l[raw]' \
+	'(-l)--raw' \
+	'(--address)-a[source IP]:source IP:' \
+	'(-a)--address:source IP:' \
+	'(--interval)-i[interval]:seconds:' \
+	'(-i)--interval:seconds:' \
+	':hostname:_hosts'



Messages sorted by: Reverse Date, Date, Thread, Author