mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
16 lines
444 B
Text
16 lines
444 B
Text
#compdef look
|
|
|
|
local curcontext="$curcontext" state line expl 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"' 2>/dev/null) && return
|
|
|
|
return ret
|