From 2b100f7515dbd01032967c2d1b81d2f8d63bf9b5 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Mon, 13 May 2013 11:24:41 +0200 Subject: zsh: add netsniff-ng zsh auto completion support Hideo Hattori wrote a set of auto completion scripts for zsh that support netsniff-ng tools. Big thanks for that! Follow-up commits still need to address updated command-line options. Signed-off-by: Hideo Hattori Signed-off-by: Daniel Borkmann --- bpfc.zsh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bpfc.zsh (limited to 'bpfc.zsh') diff --git a/bpfc.zsh b/bpfc.zsh new file mode 100644 index 0000000..ae6eb39 --- /dev/null +++ b/bpfc.zsh @@ -0,0 +1,18 @@ +#compdef bpfc +# +# bpfc.zsh -- zsh completion function for bpfc +# +# Copyright (C) 2013 Hideo Hattori +# +# 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 \ + "(-i --input)"{-i,--input}"[Berkeley Packet Filter file]:input:_files" \ + "(-V --verbose)"{-V,--verbose}"[Be more verbose]" \ + {-v,--version}"[Print version]:" \ + {-h,--help}"[Print this help]:" \ + "*::args:_gnu_generic" -- cgit v1.2.3-54-g00ecf