mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
22812: utilize _bind_addresses in existing completion functions.
This commit is contained in:
parent
39a2fe325b
commit
55739ab8ae
@ -1,5 +1,10 @@
|
||||
2006-10-03 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 22812: R. Ramkumar: Completion/Unix/Command/_bittorrent,
|
||||
Completion/Unix/Command/_rsync, Completion/Unix/Command/_ssh,
|
||||
Completion/Unix/Command/_wget: utilize _bind_addresses in
|
||||
existing completion functions.
|
||||
|
||||
* 22811: R. Ramkumar: Completion/Unix/Type/_bind_addresses:
|
||||
helper function to give local IP addresses to which a program
|
||||
might bind a socket.
|
||||
|
@ -24,7 +24,7 @@ case $service in
|
||||
'(--responsefile)--responsefile+[specify file for server response]:file:_files -g "*"'\
|
||||
"--url+[specify URL of torrent file]:URL:_urls"\
|
||||
'(-i --ip)'{-i+,--ip+}'[specify ip address to report as]:ip address'\
|
||||
"--bind+[specify ip to bind to instead of default]:ip:"\
|
||||
"--bind+[specify ip to bind to instead of default]:ip:_bind_addresses"\
|
||||
"--minport+[specify minimum port to listen to]:port:"\
|
||||
"--maxport+[specify maximum port to listen to]:port:"\
|
||||
"--saveas+[specify file to save to]:file:_files -/"\
|
||||
@ -83,7 +83,7 @@ case $service in
|
||||
_arguments -s -S \
|
||||
"--port+[specify port to listen on]:port number:" \
|
||||
"--dfile+[specify file to store recent downloader info]:file:_files" \
|
||||
"--bind+[specify ip to bind to]:bind address:" \
|
||||
"--bind+[specify ip to bind to]:bind address:_bind_addresses" \
|
||||
"--socket_timeout+[specify timeout for closing connections]:timeout (s):"\
|
||||
"--save_dfile_interval+[specify interval between saving dfile]:time (s):"\
|
||||
"--timeout_downloaders_interval+[timeout for expiring downloaders]:time (s):" \
|
||||
|
@ -94,7 +94,7 @@ _arguments -s \
|
||||
{--no-v,--no-verbose}'[turn off --verbose]' \
|
||||
'--bwlimit=[limit I/O bandwidth]:KBytes per second' \
|
||||
'--port=[specify alternate port number]:port:(873)' \
|
||||
'--address=[bind to the specified address]:address:_hosts' \
|
||||
'--address=[bind to the specified address]:bind address:_bind_addresses' \
|
||||
'(-T --temp-dir)'{-T,--temp-dir=}'[create temporary files in specified directory]:directory:_directories' \
|
||||
'--sockopts=[specify custom TCP options]' \
|
||||
'(-4 -6 --ipv4 --ipv6)'{-4,--ipv4}'[prefer IPv4]' \
|
||||
|
@ -54,7 +54,7 @@ _ssh () {
|
||||
_arguments -C -s \
|
||||
'(-A)-a[disable forwarding of authentication agent connection]' \
|
||||
'(-a)-A[enables forwarding of the authentication agent connection]' \
|
||||
'(-P)-b+[specify interface to transmit on]:bind address' \
|
||||
'(-P)-b+[specify interface to transmit on]:bind address:_bind_addresses' \
|
||||
'-D+[specify a dynamic port forwarding]:port' \
|
||||
'-e+[set escape character]:escape character (or `none'"'"'):' \
|
||||
'(-n)-f[go to background]' \
|
||||
|
@ -35,7 +35,7 @@ _arguments -C -s \
|
||||
'(--proxy -Y --no-proxy)'{--proxy=,-Y+}'[explicitly turn on proxy]' \
|
||||
'(--proxy -Y --no-proxy)--no-proxy[explicitly turn off proxy]' \
|
||||
'(--quota -Q)'{--quota=,-Q+}'[set retrieval quota]:number' \
|
||||
'--bind-address=:address to bind to (hostname or IP):_hosts' \
|
||||
'--bind-address=[specify address to bind to (hostname or IP)]:bind address:_bind_addresses' \
|
||||
'--limit-rate=[specify limit to download rate]:download rate limit' \
|
||||
'--no-dns-cache[disable caching DNS lookups]' \
|
||||
'--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:->restrict' \
|
||||
|
Loading…
Reference in New Issue
Block a user