diff options
author | Tim Harder <radhermit@gentoo.org> | 2014-12-19 20:10:00 -0800 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2014-12-19 20:10:00 -0800 |
commit | 4eae2e161562993cc343bbc2ebbfdb2287e68a06 (patch) | |
tree | 3d403cb729f894db46414e451b7833ae9aa93caa /src | |
parent | _perl-cleaner: initial completion support for perl-cleaner (diff) | |
download | zsh-completion-4eae2e161562993cc343bbc2ebbfdb2287e68a06.tar.gz zsh-completion-4eae2e161562993cc343bbc2ebbfdb2287e68a06.tar.bz2 zsh-completion-4eae2e161562993cc343bbc2ebbfdb2287e68a06.zip |
_portage: add etc-update support
Diffstat (limited to 'src')
-rw-r--r-- | src/_portage | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/src/_portage b/src/_portage index 15a9560..1c1831c 100644 --- a/src/_portage +++ b/src/_portage @@ -1,16 +1,4 @@ -#compdef emerge ebuild quickpkg emaint env-update portageq repoman tbz2tool - -# Already done: -# emerge (fully done) -# ebuild (fully done) -# emaint (fully done) -# env-update (fully done) -# portageq (fully done) -# repoman (fully done) -# tbz2tool (fully done) -# -# Still TODO: -# xpak +#compdef emerge ebuild quickpkg emaint env-update etc-update portageq repoman tbz2tool _ebuild () { if (( CURRENT == 2 )); then @@ -255,6 +243,22 @@ _env-update () { _arguments -s '(: -)--no-ldconfig[Do not run ldconfig]' } +_etc-update () { + _arguments -s \ + {'(--debug)-d','(-d)--debug'}'[Enable shell debugging]' \ + {'(--help)-h','(-h)--help'}'[Show help message and exit]' \ + {'(--preen)-p','(-p)--preen'}'[Auto-merge trivial changes only and exit]' \ + {'(--quiet)-q','(-q)--quiet'}'[Show only essential output]' \ + {'(--verbose)-v','(-v)--verbose'}'[Show settings and such along the way]' \ + {'(--version)-V','(-V)--version'}'[Show version and exit]' \ + "--automode[automatically perform operation on all files]:mode:(( \ + -3\:'auto-merge all files' \ + -5\:'auto-merge all files without using \"mv -i\"' \ + -7\:'discard all updates' \ + -9\:'discard all updates without using \"rm -i\"' ))" \ + '*:paths to scan:_files -/' +} + _portageq () { local action @@ -358,6 +362,9 @@ case "$service" in env-update) _env-update "$@" && return 0 ;; + etc-update) + _etc-update "$@" && return 0 + ;; portageq) _portageq "$@" && return 0 ;; |