diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-06-07 20:06:13 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-06-07 20:06:13 +0200 |
commit | cc8609a1aa21f135456345a01194f242bec07a2a (patch) | |
tree | eee0fe746c2c944aa32821dc9da3e24a3f22f3f3 /.zsh/completion/_ifpps.zsh | |
parent | 0053dfd996e20b29c8eb2df5d05ba7644898df61 (diff) |
Rename completion files, so they get loaded
Diffstat (limited to '.zsh/completion/_ifpps.zsh')
-rw-r--r-- | .zsh/completion/_ifpps.zsh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.zsh/completion/_ifpps.zsh b/.zsh/completion/_ifpps.zsh new file mode 100644 index 0000000..87ce135 --- /dev/null +++ b/.zsh/completion/_ifpps.zsh @@ -0,0 +1,28 @@ +#compdef ifpps +# +# ifpps.zsh -- zsh completion function for ifpps +# +# 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 + +_interfaces () { + _wanted interfaces expl 'network interface' \ + _net_interfaces + _values "Pseudo-device that captures on all interfaces" "any" +} + +_arguments -s -S \ + "(-d --dev)"{-d,--dev}"[Device to fetch statistics for i.e., eth0]:device:_interfaces" \ + "(-p --promisc)"{-p,--promisc}"[Promiscuous mode]" \ + "(-t --interval)"{-t,--interval}"[Refresh time in sec (default 1 s)]:interval:_gnu_generic" \ + "(-n --num-cpus)"{-n,--num-cpus}"[Number of top hitter CPUs to display in ncurses mode (default 10)]" \ + "(-C --csv)"{-C,--csv}"[Output to terminal as CSV E.g. post-processing with Gnuplot et al.]" \ + "(-l --loop)"{-l,--loop}"[Loop terminal output]" \ + {-v,--version}"[Print version]:" \ + {-h,--help}"[Print this help]:" \ + "*::args:_gnu_generic" |