mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
16 lines
427 B
Text
16 lines
427 B
Text
#compdef look
|
|
|
|
local curcontext="$curcontext" state line ret=1
|
|
typeset -A opt_args
|
|
|
|
_arguments -C -s \
|
|
'-t+[termination character]:termination character:' \
|
|
'-f[case insensitive]' \
|
|
'-d[dictionary order]' \
|
|
':string:->string' \
|
|
':dictionary file:_files' && ret=0
|
|
|
|
[[ -n "$state" && ! -prefix - ]] && _wanted values expl 'word prefix' \
|
|
compadd - $(_call_program words $words[1] '"$PREFIX"') && return
|
|
|
|
return ret
|