1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 00:31:07 +02:00
zsh/Completion/Core/_description
1999-08-19 11:18:10 +00:00

22 lines
455 B
Text

#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