From 1d6c3eaaa0618d35329495a324c9fd2e7ed9843a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 30 Aug 1999 10:08:13 +0000 Subject: zsh-workers/7533 --- Completion/Rpm/_rpm_tags | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Completion/Rpm/_rpm_tags (limited to 'Completion/Rpm/_rpm_tags') diff --git a/Completion/Rpm/_rpm_tags b/Completion/Rpm/_rpm_tags new file mode 100644 index 000000000..2e65b39f3 --- /dev/null +++ b/Completion/Rpm/_rpm_tags @@ -0,0 +1,11 @@ +#autoload + +if compset -P '*\{'; then + local expl + + _description expl 'RPM tag' + compadd "$expl[@]" -M 'm:{a-z}={A-Z}' -S '}' - \ + "${(@)${(@f)$(rpm --querytags)}#RPMTAG_}" +else + _message 'RPM format' +fi -- cgit 1.4.1