diff options
author | axel <axel@liljencrantz.se> | 2009-02-02 02:04:11 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2009-02-02 02:04:11 +1000 |
commit | c8de3d24c84dd94348692e605c54559b9b55eb18 (patch) | |
tree | b86e89c8ca567c3d723078e4a9c60e6327e78de2 /share/completions/netcat.fish | |
parent | 31439ffb522e78e25ac7056b30d0dc31056fa891 (diff) |
Add netcat completions, written by James Stanley
darcs-hash:20090201160411-ac50b-43c34e2a73477cde40f15887a810a7b365ec81c4.gz
Diffstat (limited to 'share/completions/netcat.fish')
-rw-r--r-- | share/completions/netcat.fish | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/share/completions/netcat.fish b/share/completions/netcat.fish new file mode 100644 index 00000000..f9fcd943 --- /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" |