mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
23 lines
455 B
Plaintext
23 lines
455 B
Plaintext
#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
|