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

20 lines
261 B
Plaintext
Raw Normal View History

1999-11-09 14:15:00 +01:00
#autoload
2000-04-01 22:43:43 +02:00
local gopt=-J
1999-11-09 14:15:00 +01:00
2000-04-01 22:43:43 +02:00
if [[ "$1" = -([12]|)[VJ] ]]; then
gopt="$1"
shift
fi
1999-11-09 14:15:00 +01:00
2000-04-01 22:43:43 +02:00
if comptags -R "$1"; then
if [[ $# -gt 3 ]]; then
_all_labels - "$gopt" "$@"
2000-04-01 22:43:43 +02:00
elif [[ $# -gt 1 ]]; then
_description "$gopt" "$@"
fi
return 0
else
return 1
fi