mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 03:11:15 +02:00
24 lines
499 B
Text
24 lines
499 B
Text
#autoload
|
|
|
|
local gropt=-J
|
|
|
|
if [[ "$1" = -[VJ]* ]]; then
|
|
gropt="$1"
|
|
shift
|
|
fi
|
|
|
|
_lastdescr=( "$_lastdescr[@]" "$2" )
|
|
|
|
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
|