1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-01 16:31:53 +02:00
zsh/Completion/Base/Core/_wanted

27 lines
341 B
Plaintext
Raw Normal View History

2001-04-02 13:05:04 +02:00
#autoload
local __targs __gopt=-J
if [[ "$1" = -C?* ]]; then
__targs=( -C "${1[3,-1]}" )
shift
elif [[ "$1" = -C ]]; then
__targs=( -C "$2" )
shift 2
else
__targs=()
fi
if [[ "$1" = -([12]|)[VJ] ]]; then
__gopt="$1"
shift
fi
_tags "$__targs[@]" "$1"
while _tags; do
_all_labels "$__gopt" "$@" && return 0
done
return 1