diff options
Diffstat (limited to '.zsh/completion/flowtop.zsh')
-rw-r--r-- | .zsh/completion/flowtop.zsh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.zsh/completion/flowtop.zsh b/.zsh/completion/flowtop.zsh new file mode 100644 index 0000000..878931c --- /dev/null +++ b/.zsh/completion/flowtop.zsh @@ -0,0 +1,25 @@ +#compdef flowtop +# +# flowtop.zsh -- zsh completion function for flowtop +# +# Copyright (C) 2013 Hideo Hattori <hhatto.jp@gmail.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. + +typeset -A opt_args + +_arguments -s -S \ + "(-4 --ipv4)"{-4,--ipv4}"[Show only IPv4 flows (default)]" \ + "(-6 --ipv6)"{-6,--ipv6}"[Show only IPv6 flows (default)]" \ + "(-T --tcp)"{-T,--tcp}"[Show only TCP flows (default)]" \ + "(-U --udp)"{-U,--udp}"[Show only UDP flows]" \ + "(-D --dccp)"{-D,--dccp}"[Show only DCCP flows]" \ + "(-I --icmp)"{-I,--icmp}"[Show only ICMP/ICMPv6 flows]" \ + "(-S --sctp)"{-S,--sctp}"[Show only SCTP flows]" \ + "(-s --show-src)"{-s,--show-src}"[Also show source, not only dest]" \ + "(-u --update)"{-u,--update}"[Update GeoIP databases]" \ + {-v,--version}"[Print version]:" \ + {-h,--help}"[Print this help]:" \ + "*::args:_gnu_generic" |