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

23 lines
455 B
Plaintext
Raw Normal View History

1999-08-19 13:18:10 +02:00
#autoload
local gropt=-J
if [[ "$1" = -V ]]; then
gropt=-V
shift
fi
if [[ -n "$compconfig[group_matches]" ]]; then
if [[ -n "$compconfig[description_format]" ]]; then
eval "$1=($gropt ${(q)2} -X ${(q)compconfig[description_format]//\\%d/$2})"
else
eval "$1=($gropt ${(q)2})"
fi
else
if [[ -n "$compconfig[description_format]" ]]; then
eval "$1=(-X ${(q)compconfig[description_format]//\\%d/$2})"
else
eval "$1=()"
fi
fi