1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00
zsh/Completion/Unix/Command/_iftop
Peter Stephenson 6c6ce048e7 Tomasz Pala <gotar@polanet.pl>: users/12884:
new completions for iftop and tcpdump
2008-05-29 12:51:15 +00:00

20 lines
665 B
Text

#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'