1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00
zsh/Completion/Core/_wanted

27 lines
325 B
Plaintext
Raw Normal View History

1999-11-15 13:01:47 +01:00
#autoload
2000-04-01 22:43:43 +02:00
local targs gopt=-J
1999-11-15 13:01:47 +01:00
if [[ "$1" = -C?* ]]; then
targs=( -C "${1[3,-1]}" )
shift
elif [[ "$1" = -C ]]; then
targs=( -C "$2" )
shift 2
else
targs=()
fi
2000-04-01 22:43:43 +02:00
if [[ "$1" = -([12]|)[VJ] ]]; then
gopt="$1"
shift
fi
_tags "$targs[@]" "$1"
1999-11-15 13:01:47 +01:00
while _tags; do
_all_labels "$gopt" "$@" && return 0
done
return 1