zsh-workers
 help / color / mirror / code / Atom feed
be8cf8c14992fd38a01b21b1fb21ea264c561336 blob 998 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 
#compdef look

local curcontext="$curcontext" state line expl args sep='+' ret=1
typeset -A opt_args

case $OSTYPE in
  linux*)
    args=(
      '(2 -a --alternative)'{-a,--alternative}'[use alternative dictionary file]'
      '(-d --alphanum)'{-d,--alphanum}'[dictionary order]'
      '(-f --ignore-case)'{-f,--ignore-case}'[case insensitive]'
      '(-t --terminate)'{-t+,--terminate=}'[specify termination character]:termination character'
      '(-)'{-h,--help}'[display help information]'
      '(-)'{-V,--version}'[display version information]'
    )
  ;;
  solaris*) sep='-' ;&
  *)
    args=( -A "-*"
      "-t${sep}[specify termination character]:termination character"
      '-f[case insensitive]'
      '-d[dictionary order]'
    )
  ;;
esac

_arguments -C -s -S $args \
  '1:string:->string' \
  '2:dictionary file:_files' && ret=0

[[ -n "$state" && ! -prefix - ]] && _wanted values expl 'word prefix' \
    compadd - $(_call_program words $words[1] '"$PREFIX"') && return

return ret
debug log:

solving be8cf8c ...
found be8cf8c in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).