diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-29 12:51:15 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-29 12:51:15 +0000 |
| commit | 6c6ce048e71e80b3b64b7339df7162398287c99f (patch) | |
| tree | 5979d8e585c048a34fc0d7b28b7264005df2ee4d /Completion | |
| parent | unposted: more NEWS (diff) | |
| download | zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.tar zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.tar.gz zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.tar.bz2 zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.tar.lz zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.tar.xz zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.tar.zst zsh-6c6ce048e71e80b3b64b7339df7162398287c99f.zip | |
Tomasz Pala <gotar@polanet.pl>: users/12884:
new completions for iftop and tcpdump
Diffstat (limited to 'Completion')
| -rw-r--r-- | Completion/Unix/Command/.distfiles | 2 | ||||
| -rw-r--r-- | Completion/Unix/Command/_iftop | 20 | ||||
| -rw-r--r-- | Completion/Unix/Command/_tcpdump | 92 |
3 files changed, 114 insertions, 0 deletions
diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles index ec4ac3975..da748708b 100644 --- a/Completion/Unix/Command/.distfiles +++ b/Completion/Unix/Command/.distfiles @@ -82,6 +82,7 @@ _gzip _iconv _id _ifconfig +_iftop _imagemagick _init_d _ip @@ -184,6 +185,7 @@ _surfraw _sysctl _tar _tardy +_tcpdump _tcptraceroute _telnet _texinfo 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' diff --git a/Completion/Unix/Command/_tcpdump b/Completion/Unix/Command/_tcpdump new file mode 100644 index 000000000..015cd8651 --- /dev/null +++ b/Completion/Unix/Command/_tcpdump @@ -0,0 +1,92 @@ |
