aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-12-21 01:48:58 -0800
committerTim Harder <radhermit@gentoo.org>2014-12-21 01:48:58 -0800
commitce83f20e491242aabe4be81a6c6a5169c6eda3a7 (patch)
treeee7786dc63346ffc5efcbf97a90df5f83a495866
parentsplit out arches list into it's own completion file (diff)
downloadzsh-completion-ce83f20e491242aabe4be81a6c6a5169c6eda3a7.tar.gz
zsh-completion-ce83f20e491242aabe4be81a6c6a5169c6eda3a7.tar.bz2
zsh-completion-ce83f20e491242aabe4be81a6c6a5169c6eda3a7.zip
_gentoolkit: initial eshowkw completion support
Still need to work on completing comma separated arches for the '--arch' option. We currently only take one arch completion.
-rw-r--r--src/_gentoolkit20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/_gentoolkit b/src/_gentoolkit
index 7ed5ceb..b6a73b8 100644
--- a/src/_gentoolkit
+++ b/src/_gentoolkit
@@ -1,4 +1,4 @@
-#compdef equery euse eclean eclean-dist eclean-pkg epkginfo genpkgindex glsa-check revdep-rebuild
+#compdef equery euse eclean eclean-dist eclean-pkg epkginfo eshowkw genpkgindex glsa-check revdep-rebuild
# XXX: shouldn't this go to _gentoo_package?
_packages () {
@@ -304,6 +304,21 @@ _epkginfo () {
'*:package:_gentoo_packages available'
}
+_eshowkw () {
+ _arguments -s \
+ '(: -)'{-h,--help}'[Display help and exit]' \
+ '(: -)'{-v,--version}'[Show package version and exit]' \
+ {'(--arch)-a','(-a)--arch'}'[Display only specified arch(es)]:arch(es):_gentoo_arches' \
+ {'(--align)-A','(-A)--align'}'[Specify alignment for descriptions (default: bottom)]:alignment:((top bottom))' \
+ {'(--top-position)-T','(-T)--top-position'}'[Specify which fields we want to have in top listing (default: archlist)]:field:((archlist versionlist))' \
+ {'(--bold)-B','(-B)--bold'}'[Print out each other column in bold for easier visual separation]' \
+ {'(--color)-C','(-C)--color'}'[Force colored output]' \
+ {'(--overlays)-O','(-O)--overlays'}'[Include overlays in search]' \
+ {'(--prefix)-P','(-P)--prefix'}'[Display prefix keywords in output]' \
+ {'(--ignore-slot)-S','(-S)--ignore-slot'}'[Treat slots as irelevant during detection of redundant packages]' \
+ '*:package:_gentoo_packages available'
+}
+
_genpkgindex () {
_arguments -s \
'(: -)'{-h,--help}'[Display help and exit]' \
@@ -385,6 +400,9 @@ case "$service" in
epkginfo)
_epkginfo "$@" && return 0
;;
+ eshowkw)
+ _eshowkw "$@" && return 0
+ ;;
genpkgindex)
_genpkgindex "$@" && return 0
;;