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

27 lines
325 B
Plaintext

#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