about summary refs log tree commit diff
path: root/Completion/Unix/Command/_iftop
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-29 12:51:15 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-29 12:51:15 +0000
commit6c6ce048e71e80b3b64b7339df7162398287c99f (patch)
tree5979d8e585c048a34fc0d7b28b7264005df2ee4d /Completion/Unix/Command/_iftop
parentc4679383109f8e4f93c13b1eb30d352503b943e0 (diff)
downloadzsh-6c6ce048e71e80b3b64b7339df7162398287c99f.tar.gz
zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.tar.xz
zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.zip
Tomasz Pala <gotar@polanet.pl>: users/12884:
new completions for iftop and tcpdump
Diffstat (limited to 'Completion/Unix/Command/_iftop')
-rw-r--r--Completion/Unix/Command/_iftop20
1 files changed, 20 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_iftop b/Completion/Unix/Command/_iftop
new file mode 100644
index 000000000..41ffb4ea1
--- /dev/null
+++ b/Completion/Unix/Command/_iftop
@@ -0,0 +1,20 @@
+#compdef iftop
+
+_interfaces () {
+	_wanted interfaces expl 'network interface' \
+		_net_interfaces
+	_values "Pseudo-device that captures on all interfaces" "any"
+}
+
+_arguments \
+  '(-h -n -N -p -b -B -P -i -f -F -c)'-h'[print a summary of usage]' \
+  -n"[don't do hostname lookups]" \
+  -N"[don't resolve port number to service names]" \
+  -p'[run in promiscuous mode]' \
+  -P'[turn on port display]' \
+  -b"[don't display bar graphs of traffic]" \
+  -B'[display bandwidth rates in bytes/sec rather than bits/sec]' \
+  -i'[interface]:network interface:_interfaces' \
+  -f'[filter]:BPF filter' \
+  -F'[net/mask]:network/mask' \
+  -c'[config file]:config file:_files'