blob: 74e7ab447f406e90eefae3c99a383022199489c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#compdef look
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments -C -s \
'-t+[termination character]:termination character:' \
'-f[case insensitive]' \
'-d[dictionary order]' \
':string:->string' && return 0
case "$state" in
string)
[[ -n "$PREFIX" ]] &&
_wanted values expl value compadd - $(_call values $words[1] $PREFIX)
;;
esac
|