From 6c6ce048e71e80b3b64b7339df7162398287c99f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 29 May 2008 12:51:15 +0000 Subject: Tomasz Pala : users/12884: new completions for iftop and tcpdump --- Completion/Unix/Command/_iftop | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Completion/Unix/Command/_iftop (limited to 'Completion/Unix/Command/_iftop') 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' -- cgit 1.4.1