diff options
Diffstat (limited to 'Completion/User')
-rw-r--r-- | Completion/User/_cvs | 27 | ||||
-rw-r--r-- | Completion/User/_lynx | 202 | ||||
-rw-r--r-- | Completion/User/_wget | 19 |
3 files changed, 121 insertions, 127 deletions
diff --git a/Completion/User/_cvs b/Completion/User/_cvs index 3b59a358a..24a21f8be 100644 --- a/Completion/User/_cvs +++ b/Completion/User/_cvs @@ -225,21 +225,18 @@ _cvs_history () { builtin functions _cvs_history_x >&- || _cvs_history_x () { - compset -P '*' - - compadd "$@" -S '' -d '( - F\ --\ release - O\ --\ checkout - E\ --\ export - T\ --\ rtag - C\ --\ merge\ collision-detected - G\ --\ merge\ succeed - U\ --\ working\ file\ was\ copied - W\ --\ working\ file\ was\ deleted - A\ --\ A\ file\ was\ added - M\ --\ A\ file\ was\ modified - R\ --\ A\ file\ was\ removed - )' F O E T C G U W A M R + _values -s '' 'type' \ + 'F[release]' \ + 'O[checkout]' \ + 'E[export]' \ + 'T[rtag]' \ + 'C[merge collision-detected]' \ + 'G[merge succeed]' \ + 'U[working file was copied]' \ + 'W[working file was deleted]' \ + 'A[A file was added]' \ + 'M[A file was modified]' \ + 'R[A file was removed]' } builtin functions _cvs_import >&- || diff --git a/Completion/User/_lynx b/Completion/User/_lynx index 42c3498fc..2c6b48f92 100644 --- a/Completion/User/_lynx +++ b/Completion/User/_lynx @@ -1,109 +1,109 @@ #compdef lynx -_lynx () { - _arguments \ - '-accept_all_cookies' \ - '-anonymous' \ - '-assume_charset=:MIMENAME:' \ - '-assume_local_charset=:MIMENAME:' \ - '-assume_unrec_charset=:MIMENAME:' \ - '-auth=:ID\:PW:' \ - '-base' \ - '-blink' \ - '-book' \ - '-buried_news' \ - '-cache=:NUMBER:' \ - '-case' \ - '-cfg=:FILENAME:_files' \ - '-child' \ - '-color' \ - '-cookies' \ - '-core' \ - '-crawl' \ - '-display=:DISPLAY:_x_display' \ - '-dump' \ - '-editor=:EDITOR:_files' \ - '-emacskeys' \ - '-enable_scrollback' \ - '-error_file=:FILENAME:_files' \ - '-fileversions' \ - '-force_html' \ - '-force_secure' \ - '-from' \ - '-ftp' \ - '-get_data' \ - '-head' \ - '-help' \ - '-historical' \ - '-homepage=:URL: _urls -f' \ - '-image_links' \ - '-ismap' \ - '-index=:URL: _urls -f' \ - '-link=:NUMBER:' \ - '-localhost' \ - '-locexec' \ - '-mime_header' \ - '-minimal' \ - '-newschunksize=:NUMBER:' \ - '-newsmaxchunk=:NUMBER:' \ - '-nobrowse' \ - '-nocc' \ - '-nocolor' \ - '-noexec' \ - '-nofilereferer' \ - '-nolist' \ - '-nolog' \ - '-nonrestarting_sigwinch' \ - '-nopause' \ - '-noprint' \ - '-noredir' \ - '-noreferer' \ - '-nosocks' \ - '-nostatus' \ - '-number_links' \ - '-partial' \ - '-pauth=:ID\:PW:' \ - '-popup' \ - '-post_data' \ - '-preparsed' \ - '-print' \ - '-pseudo_inlines' \ - '-raw' \ - '-realm' \ - '-reload' \ - '-restrictions=:options:_lynx_restrictions' \ - '-resubmit_posts' \ - '-rlogin' \ - '-selective' \ - '-show_cursor' \ - '-soft_dquotes' \ - '-source' \ - '-startfile_ok' \ - '-tagsoup' \ - '-telnet' \ - '-term=:TERM:' \ - '-tlog' \ - '-trace' \ - '-traversal' \ - '-underscore' \ - '-useragent=:NAME:' \ - '-use_mouse' \ - '-validate' \ - '-verbose' \ - '-version' \ - '-vikeys' \ - '-width=:NUMBER:' \ - ':url: _urls -f' -} +local state line +typeset -A options -_lynx_restrictions () { - compset -P '*,' - compadd -qS, \ +_arguments \ + '-accept_all_cookies' \ + '-anonymous' \ + '-assume_charset=:MIMENAME:' \ + '-assume_local_charset=:MIMENAME:' \ + '-assume_unrec_charset=:MIMENAME:' \ + '-auth=:ID\:PW:' \ + '-base' \ + '-blink' \ + '-book' \ + '-buried_news' \ + '-cache=:NUMBER:' \ + '-case' \ + '-cfg=:FILENAME:_files' \ + '-child' \ + '-color' \ + '-cookies' \ + '-core' \ + '-crawl' \ + '-display=:DISPLAY:_x_display' \ + '-dump' \ + '-editor=:EDITOR:_files' \ + '-emacskeys' \ + '-enable_scrollback' \ + '-error_file=:FILENAME:_files' \ + '-fileversions' \ + '-force_html' \ + '-force_secure' \ + '-from' \ + '-ftp' \ + '-get_data' \ + '-head' \ + '-help' \ + '-historical' \ + '-homepage=:URL: _urls -f' \ + '-image_links' \ + '-ismap' \ + '-index=:URL: _urls -f' \ + '-link=:NUMBER:' \ + '-localhost' \ + '-locexec' \ + '-mime_header' \ + '-minimal' \ + '-newschunksize=:NUMBER:' \ + '-newsmaxchunk=:NUMBER:' \ + '-nobrowse' \ + '-nocc' \ + '-nocolor' \ + '-noexec' \ + '-nofilereferer' \ + '-nolist' \ + '-nolog' \ + '-nonrestarting_sigwinch' \ + '-nopause' \ + '-noprint' \ + '-noredir' \ + '-noreferer' \ + '-nosocks' \ + '-nostatus' \ + '-number_links' \ + '-partial' \ + '-pauth=:ID\:PW:' \ + '-popup' \ + '-post_data' \ + '-preparsed' \ + '-print' \ + '-pseudo_inlines' \ + '-raw' \ + '-realm' \ + '-reload' \ + '-restrictions=:options:->restrictions' \ + '-resubmit_posts' \ + '-rlogin' \ + '-selective' \ + '-show_cursor' \ + '-soft_dquotes' \ + '-source' \ + '-startfile_ok' \ + '-tagsoup' \ + '-telnet' \ + '-term=:TERM:' \ + '-tlog' \ + '-trace' \ + '-traversal' \ + '-underscore' \ + '-useragent=:NAME:' \ + '-use_mouse' \ + '-validate' \ + '-verbose' \ + '-version' \ + '-vikeys' \ + '-width=:NUMBER:' \ + ':url: _urls -f' + +case "$state" in +restrictions) + _values -s ',' 'restriction' \ all bookmark bookmark_exec change_exec_perms default dired_support \ disk_save dotfiles download editor exec exec_frozen externals file_url \ goto inside_ftp inside_news inside_rlogin inside_telnet jump mail \ multibook news_post options_save outside_ftp outside_news outside_rlogin \ outside_telnet print shell suspend telnet_port useragent -} - -_lynx "$@" + ;; +esac diff --git a/Completion/User/_wget b/Completion/User/_wget index 0e56df355..e53e32888 100644 --- a/Completion/User/_wget +++ b/Completion/User/_wget @@ -78,16 +78,13 @@ _arguments -s \ case "$state" in noflags) - tmp1=( - 'v:non verbose' - 'h:no host lookup' - 'H:no host directories' - 'd:no directories' - 'c:no clobber' - 'r:don'\''t remove listing' - 'p:no parent' - ) - tmp2=(${PREFIX}${^tmp1%%:*}) - _describe -o option tmp1 tmp2 + _values -s '' 'option' \ + 'v[non verbose]' \ + 'h[no host lookup]' \ + 'H[no host directories]' \ + 'd[no directories]' \ + 'c[no clobber]' \ + 'r[don'\''t remove listing]' \ + 'p[no parent]' ;; esac |