From 9867c4091e71e6ed69889a9bfaee07275d2fa04e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 19 Aug 1999 11:18:05 +0000 Subject: manual/7448 --- Completion/Core/_description | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Completion/Core/_description (limited to 'Completion/Core/_description') diff --git a/Completion/Core/_description b/Completion/Core/_description new file mode 100644 index 000000000..874ba8a96 --- /dev/null +++ b/Completion/Core/_description @@ -0,0 +1,22 @@ +#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 -- cgit 1.4.1