2001-04-02 13:55:25 +02:00
|
|
|
#compdef look
|
|
|
|
|
2003-06-25 11:03:04 +02:00
|
|
|
local curcontext="$curcontext" state line ret=1
|
2001-04-02 13:55:25 +02:00
|
|
|
typeset -A opt_args
|
|
|
|
|
|
|
|
_arguments -C -s \
|
|
|
|
'-t+[termination character]:termination character:' \
|
|
|
|
'-f[case insensitive]' \
|
|
|
|
'-d[dictionary order]' \
|
|
|
|
':string:->string' \
|
2003-06-25 11:03:04 +02:00
|
|
|
':dictionary file:_files' && ret=0
|
2001-04-02 13:55:25 +02:00
|
|
|
|
2003-06-25 11:03:04 +02:00
|
|
|
[[ -n "$state" && ! -prefix - ]] && _wanted values expl 'word prefix' \
|
|
|
|
compadd - $(_call_program words $words[1] '"$PREFIX"') && return
|
|
|
|
|
|
|
|
return ret
|