From c8de3d24c84dd94348692e605c54559b9b55eb18 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 2 Feb 2009 02:04:11 +1000 Subject: [PATCH] Add netcat completions, written by James Stanley darcs-hash:20090201160411-ac50b-43c34e2a73477cde40f15887a810a7b365ec81c4.gz --- share/completions/netcat.fish | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 share/completions/netcat.fish diff --git a/share/completions/netcat.fish b/share/completions/netcat.fish new file mode 100644 index 000000000..f9fcd9431 --- /dev/null +++ b/share/completions/netcat.fish @@ -0,0 +1,25 @@ +# NetCat completions for fish +# By James Stanley + +complete -r -c nc -d "Remote hostname" -a "(__fish_print_hostnames)" +complete -r -c nc -s c -d "Same as -e, but use /bin/sh" +complete -r -c nc -s e -d "Program to execute after connection" +complete -c nc -s b -d "Allow broadcasts" +complete -r -c nc -s g -d "Source-routing hop points" +complete -r -c nc -s G -d "Source-routing pointer" +complete -c nc -s h -d "Show help" +complete -r -c nc -s i -d "Delay interval for lines sent, ports scaned" +complete -c nc -s k -d "Set keepalive option" +complete -c nc -s l -d "Listen mode, acts as a server" +complete -c nc -s n -d "Numeric-only IP addresses, no DNS" +complete -r -c nc -s o -d "Hex dump of traffic" +complete -r -c nc -s p -d "Local port number" +complete -c nc -s r -d "Randomize local and remote ports" +complete -r -c nc -s q -d "Quit after EOF on stdin and delay of secs" +complete -r -c nc -s s -d "Local source address" +complete -c nc -s t -d "Answer Telnet negotiation" +complete -c nc -s u -d "UDP Mode" +complete -c nc -s v -d "Verbose, use twice to be more verbose" +complete -r -c nc -s w -d "Timeout for connects and final net reads" +complete -r -c nc -s x -d "Set Type of Service" +complete -c nc -s z -d "No I/O - used for scanning"