mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
moved to Completion/Unix/Command/_look
This commit is contained in:
parent
1701ecb381
commit
df01173ce9
@ -1,21 +0,0 @@
|
||||
#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' \
|
||||
':dictionary file:_files' && return 0
|
||||
|
||||
case "$state" in
|
||||
string)
|
||||
if [[ -n "$PREFIX" ]]; then
|
||||
_wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX)
|
||||
else
|
||||
_message 'word prefix'
|
||||
fi
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user