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

27 lines
341 B
Plaintext
Raw Normal View History

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