mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 11:01:13 +02:00
15683: completion for links(1)
This commit is contained in:
parent
4ab1fb2bd3
commit
3d3e3015c4
3 changed files with 38 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-08-22 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 15683: Completion/Unix/Command/.distfiles,
|
||||
Completion/Unix/Command/_links: completion for
|
||||
links(1).
|
||||
|
||||
2001-08-22 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 15676: Test/A01grammar.ztst, Test/A05execution.ztst,
|
||||
|
|
|
@ -14,5 +14,5 @@ _cvs _gnu_generic _ls _perl _tar _zip
|
|||
_dd _gprof _lynx _perldoc _telnet _pine
|
||||
_dict _grep _lzop _prcs _tiff _elm
|
||||
_diff _gs _make _psutils _tin _apm _mail
|
||||
_last _loadkeys _modutils _ruby _sysctl
|
||||
_last _loadkeys _modutils _ruby _sysctl _links
|
||||
'
|
||||
|
|
31
Completion/Unix/Command/_links
Normal file
31
Completion/Unix/Command/_links
Normal file
|
@ -0,0 +1,31 @@
|
|||
#compdef links
|
||||
|
||||
local curcontext="$curcontext" state line
|
||||
typeset -A opt_args
|
||||
|
||||
_arguments -C \
|
||||
'-async-dns:bool:(0 1)' \
|
||||
'-max-connections:max:' \
|
||||
'-max-connections-to-host:max:' \
|
||||
'-retries:retries:' \
|
||||
'-receive-timeout:secs:' \
|
||||
'-unrestartable-receive-timeout:secs:' \
|
||||
'-format-cache-size:pages:' \
|
||||
'-memory-cache-size:kilobytes:' \
|
||||
'-http-proxy:hostport:_hosts' \
|
||||
'-ftp-proxy:hostport:_hosts' \
|
||||
'-download-dir:_files -/' \
|
||||
'-assume-codepage:codepage:' \
|
||||
'-anonymous' \
|
||||
'-dump' \
|
||||
'-no-connect' \
|
||||
'-source' \
|
||||
'-version' \
|
||||
'-help' \
|
||||
':url:->html' && return 0
|
||||
|
||||
case "$state" in
|
||||
html)
|
||||
_files -g '*.html' || _urls
|
||||
;;
|
||||
esac
|
Loading…
Reference in a new issue