1 |
commit: e3fe6ff0ddc42aa20099c6aa01a87e8aea2a4605 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 28 18:52:56 2014 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 28 18:59:22 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=e3fe6ff0 |
7 |
|
8 |
_portage_utils: indentation fixes |
9 |
|
10 |
--- |
11 |
_portage_utils | 250 ++++++++++++++++++++++++++++----------------------------- |
12 |
1 file changed, 125 insertions(+), 125 deletions(-) |
13 |
|
14 |
diff --git a/_portage_utils b/_portage_utils |
15 |
index ead6ca0..994c943 100644 |
16 |
--- a/_portage_utils |
17 |
+++ b/_portage_utils |
18 |
@@ -21,129 +21,129 @@ common_args=( |
19 |
) |
20 |
|
21 |
case $service in |
22 |
-qcheck) |
23 |
- _arguments -s $common_args \ |
24 |
- {'(--all)-a','(-a)--all'}'[List all packages]' \ |
25 |
- {'(--update)-u','(-u)--update'}'[Update chksum and mtimes for packages]' \ |
26 |
- '*:packages:_gentoo_packages installed' |
27 |
-;; |
28 |
-qdepends) |
29 |
- _arguments -s $common_args \ |
30 |
- {'(--depend)-d','(-d)--depend'}'[Show DEPEND info (default)]' \ |
31 |
- {'(--rdepend)-r','(-r)--rdepend'}'[Show RDEPEND info]' \ |
32 |
- {'(--pdepend)-p','(-p)--pdepend'}'[Show PDEPEND info]' \ |
33 |
- {'(--key)-k','(-k)--key'}'[User defined vdb key]' \ |
34 |
- {'(--query)-Q','(-Q)--query'}'[Query reverse deps]' \ |
35 |
- {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \ |
36 |
- {'(--all)-a','(-a)--all'}'[Show all DEPEND info]' \ |
37 |
- '*:packages:_gentoo_packages installed' |
38 |
-;; |
39 |
-qfile) |
40 |
- _arguments -s $common_args \ |
41 |
- {'(--exact)-e','(-e)--exact'}'[Exact match]' \ |
42 |
- '*:filename:_files' |
43 |
-;; |
44 |
-qgrep) |
45 |
- _arguments -s $common_args \ |
46 |
- {'(--invert-match)-I','(-I)--invert-match'}'[Select non-matching lines]' \ |
47 |
- {'(--ignore-case)-i','(-i)--ignore-case'}'[Ignore case distinctions]' \ |
48 |
- {'(--with-filename)-H','(-H)--with-filename'}'[Print the filename for each match]' \ |
49 |
- {'(--count)-c','(-c)--count'}'[Only print a count of matching lines per FILE]' \ |
50 |
- {'(--regexp)-e','(-e)--regexp'}'[Use PATTERN as a regular expression]' \ |
51 |
- '*:pattern::' |
52 |
-;; |
53 |
-qcache) |
54 |
- local arches allarches arch |
55 |
- show_archs(){ |
56 |
- arches=(${(f)"$(<$PORTDIR/profiles/arch.list)"}) |
57 |
- allarches=($archs) |
58 |
- for arch in $arches;do |
59 |
- allarches=($allarches $arch) |
60 |
- done |
61 |
- _describe -t available-arches "arch" allarches |
62 |
- } |
63 |
- _arguments -s $common_args \ |
64 |
- '*:arch:show_archs' |
65 |
-;; |
66 |
-qlist) |
67 |
- _arguments -s $common_args \ |
68 |
- {'(--installed)-I','(-I)--installed'}'[Just show installed packages]' \ |
69 |
- {'(--slots)-S','(-S)--slots'}'[Display installed packages with slots]' \ |
70 |
- {'(--repo)-R','(-R)--repo'}'[Display installed packages with repository]' \ |
71 |
- {'(--umap)-U','(-U)--umap'}'[Display installed packages with flags used]' \ |
72 |
- {'(--columns)-c','(-c)--columns'}'[Display column view]' \ |
73 |
- '--show-debug[Show /usr/lib/debug files]' \ |
74 |
- {'(--exact)-e','(-e)--exact'}'[Exact match (only CAT/PN or PN without PV)]' \ |
75 |
- {'(--all)-a','(-a)--all'}'[Show every installed package]' \ |
76 |
- {'(--dir)-d','(-d)--dir'}'[Only show directories]' \ |
77 |
- {'(--obj)-o','(-o)--obj'}'[Only show objects]' \ |
78 |
- {'(--sym)-s','(-s)--sym'}'[Only show symlinks]' \ |
79 |
- '--root[Set the ROOT env var]:root directory:_files -/' \ |
80 |
- '*:packages:_gentoo_packages installed' |
81 |
-;; |
82 |
-qlop) |
83 |
- _arguments -s $common_args \ |
84 |
- {'(--gauge)-g','(-g)--gauge'}'[Gauge number of times a package has been merged]' \ |
85 |
- {'(--time)-t','(-t)--time'}'[Calculate merge time for a specific package]' \ |
86 |
- {'(--human)-H','(-H)--human'}'[Print seconds in human readable format (needs -t)]' \ |
87 |
- {'(--list)-l','(-l)--list'}'[Show merge history]' \ |
88 |
- {'(--unlist)-u','(-u)--unlist'}'[Show unmerge history]' \ |
89 |
- {'(--sync)-s','(-s)--sync'}'[Show sync history]' \ |
90 |
- {'(--current)-c','(-c)--current'}'[Show current emerging packages]' \ |
91 |
- {'(--logfile)-f','(-f)--logfile'}'[Read emerge logfile instead of /var/log/emerge.log]:log:_files' \ |
92 |
- '*:packages:_gentoo_packages available' |
93 |
-;; |
94 |
-qsearch) |
95 |
- _arguments -s $common_args \ |
96 |
- {'(--all)-a','(-a)--all'}'[List the descriptions of every package in the cache]' \ |
97 |
- {'(--cache)-c','(-c)--cache'}'[Use the portage cache]' \ |
98 |
- {'(--search)-s','(-s)--search'}'[Regex search package basenames]' \ |
99 |
- {'(--desc)-S','(-S)--desc'}'[Regex search package descriptions]' \ |
100 |
- {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \ |
101 |
- {'(--homepage)-H','(-H)--homepage'}'[Show homepage info]' \ |
102 |
- '*:pattern::' |
103 |
-;; |
104 |
-qsize) |
105 |
- _arguments -s $common_args \ |
106 |
- {'(--filesystem)-f','(-f)--filesystem'}'[Show size used on disk]' \ |
107 |
- {'(--all)-a','(-a)--all'}'[Size all installed packages]' \ |
108 |
- {'(--sum)-s','(-s)--sum'}'[Include a summary]' \ |
109 |
- {'(--sum-only)-S','(-S)--sum-only'}'[Show just the summary]' \ |
110 |
- {'(--megabyte)-m','(-m)--megabyte'}'[Display size in megabytes]' \ |
111 |
- {'(--kilobyte)-k','(-k)--kilobyte'}'[Display size in kilobytes]' \ |
112 |
- {'(--byte)-b','(-b)--byte'}'[Display size in bytes]' \ |
113 |
- '*:packages:_gentoo_packages installed' |
114 |
-;; |
115 |
-quse) |
116 |
- _arguments -s $common_args \ |
117 |
- {'(--exact)-e','(-e)--exact'}'[Show exact non regexp matching using strcmp]' \ |
118 |
- {'(--all)-a','(-a)--all'}'[Show annoying things in IUSE]' \ |
119 |
- {'(--keywords)-K','(-K)--keywords'}'[Use the KEYWORDS vs IUSE]' \ |
120 |
- {'(--license)-L','(-L)--license'}'[Use the LICENSE vs IUSE]' \ |
121 |
- {'(--describe)-D','(-D)--describe'}'[Describe the USE flag]' \ |
122 |
- {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \ |
123 |
- '*:use flag:_gentoo_packages useflag' |
124 |
-;; |
125 |
-qtbz2) |
126 |
- _arguments -s $common_args \ |
127 |
- {'(--join -s --split -t --tarbz2 -x --xpak)-j','(-t --tarbz2 -j -s --split -x --xpak)--join'}'[Join tar.bz2 + xpak into a tbz2]:*:tar.bz2 file and xpak file:_files -g \*.\(tar.bz2\|xpak\)' \ |
128 |
- {'(--join -j --split -t --tarbz2 -x --xpak)-s','(-t --tarbz2 -j --join -s -x --xpak)--split'}'[Split a tbz2 into a tar.bz2 + xpak]:tbz2 file:_files -g \*.tbz2' \ |
129 |
- {'(--join -j -s --split --tarbz2 -x --xpak)-t','(--join -j -s --split -t -x --xpak)--tarbz2'}'[Just split the tar.bz2]:tbz2 file:_files -g \*.tbz2' \ |
130 |
- {'(--join -j -s --split -t --tarbz2 --xpak)-x','(--join -j -s --split -t --tarbz2 -x)--xpak'}'[Just split the xpak]:tbz2 file:_files -g \*.tbz2' \ |
131 |
- {'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]' |
132 |
-;; |
133 |
-qpkg) |
134 |
- _arguments -s $common_args \ |
135 |
- {'(--pretend)-p','(-p)--pretend'}'[pretend only]' \ |
136 |
- {'(--pkgdir)-P','(-P)--pkgdir'}'[alternate package directory]:alternate pkgdir:_files -/' \ |
137 |
- '*:Installed packages:_gentoo_packages installed_versions' |
138 |
-;; |
139 |
-qxpak) |
140 |
- _arguments -s $common_args \ |
141 |
- {'(--list --extract -x --create -c)-l','(-l --extract -x --create -c)--list'}'[List the contents of an archive]:xpak archive:_files -g \*.xpak' \ |
142 |
- {'(--list -l --extract --create -c)-x','(--list -l -x --create -c)--extract'}'[Extract the contents of an archive]:xpak archive:_files -g \*.xpak' \ |
143 |
- {'(--list -l --extract -x --create)-c','(--list -l --extract -x -c)--create'}'[Create an archive of a directory/files]:*:archive name and files to archive:_files' \ |
144 |
- {'(--dir)-d','(-d)--dir'}'[Change to specified directory]:directory:_files -/' \ |
145 |
- {'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]' |
146 |
-;; |
147 |
+ qcache) |
148 |
+ local arches allarches arch |
149 |
+ show_archs(){ |
150 |
+ arches=(${(f)"$(<$PORTDIR/profiles/arch.list)"}) |
151 |
+ allarches=($archs) |
152 |
+ for arch in $arches;do |
153 |
+ allarches=($allarches $arch) |
154 |
+ done |
155 |
+ _describe -t available-arches "arch" allarches |
156 |
+ } |
157 |
+ _arguments -s $common_args \ |
158 |
+ '*:arch:show_archs' |
159 |
+ ;; |
160 |
+ qcheck) |
161 |
+ _arguments -s $common_args \ |
162 |
+ {'(--all)-a','(-a)--all'}'[List all packages]' \ |
163 |
+ {'(--update)-u','(-u)--update'}'[Update chksum and mtimes for packages]' \ |
164 |
+ '*:packages:_gentoo_packages installed' |
165 |
+ ;; |
166 |
+ qdepends) |
167 |
+ _arguments -s $common_args \ |
168 |
+ {'(--depend)-d','(-d)--depend'}'[Show DEPEND info (default)]' \ |
169 |
+ {'(--rdepend)-r','(-r)--rdepend'}'[Show RDEPEND info]' \ |
170 |
+ {'(--pdepend)-p','(-p)--pdepend'}'[Show PDEPEND info]' \ |
171 |
+ {'(--key)-k','(-k)--key'}'[User defined vdb key]' \ |
172 |
+ {'(--query)-Q','(-Q)--query'}'[Query reverse deps]' \ |
173 |
+ {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \ |
174 |
+ {'(--all)-a','(-a)--all'}'[Show all DEPEND info]' \ |
175 |
+ '*:packages:_gentoo_packages installed' |
176 |
+ ;; |
177 |
+ qfile) |
178 |
+ _arguments -s $common_args \ |
179 |
+ {'(--exact)-e','(-e)--exact'}'[Exact match]' \ |
180 |
+ '*:filename:_files' |
181 |
+ ;; |
182 |
+ qgrep) |
183 |
+ _arguments -s $common_args \ |
184 |
+ {'(--invert-match)-I','(-I)--invert-match'}'[Select non-matching lines]' \ |
185 |
+ {'(--ignore-case)-i','(-i)--ignore-case'}'[Ignore case distinctions]' \ |
186 |
+ {'(--with-filename)-H','(-H)--with-filename'}'[Print the filename for each match]' \ |
187 |
+ {'(--count)-c','(-c)--count'}'[Only print a count of matching lines per FILE]' \ |
188 |
+ {'(--regexp)-e','(-e)--regexp'}'[Use PATTERN as a regular expression]' \ |
189 |
+ '*:pattern::' |
190 |
+ ;; |
191 |
+ qlist) |
192 |
+ _arguments -s $common_args \ |
193 |
+ {'(--installed)-I','(-I)--installed'}'[Just show installed packages]' \ |
194 |
+ {'(--slots)-S','(-S)--slots'}'[Display installed packages with slots]' \ |
195 |
+ {'(--repo)-R','(-R)--repo'}'[Display installed packages with repository]' \ |
196 |
+ {'(--umap)-U','(-U)--umap'}'[Display installed packages with flags used]' \ |
197 |
+ {'(--columns)-c','(-c)--columns'}'[Display column view]' \ |
198 |
+ '--show-debug[Show /usr/lib/debug files]' \ |
199 |
+ {'(--exact)-e','(-e)--exact'}'[Exact match (only CAT/PN or PN without PV)]' \ |
200 |
+ {'(--all)-a','(-a)--all'}'[Show every installed package]' \ |
201 |
+ {'(--dir)-d','(-d)--dir'}'[Only show directories]' \ |
202 |
+ {'(--obj)-o','(-o)--obj'}'[Only show objects]' \ |
203 |
+ {'(--sym)-s','(-s)--sym'}'[Only show symlinks]' \ |
204 |
+ '--root[Set the ROOT env var]:root directory:_files -/' \ |
205 |
+ '*:packages:_gentoo_packages installed' |
206 |
+ ;; |
207 |
+ qlop) |
208 |
+ _arguments -s $common_args \ |
209 |
+ {'(--gauge)-g','(-g)--gauge'}'[Gauge number of times a package has been merged]' \ |
210 |
+ {'(--time)-t','(-t)--time'}'[Calculate merge time for a specific package]' \ |
211 |
+ {'(--human)-H','(-H)--human'}'[Print seconds in human readable format (needs -t)]' \ |
212 |
+ {'(--list)-l','(-l)--list'}'[Show merge history]' \ |
213 |
+ {'(--unlist)-u','(-u)--unlist'}'[Show unmerge history]' \ |
214 |
+ {'(--sync)-s','(-s)--sync'}'[Show sync history]' \ |
215 |
+ {'(--current)-c','(-c)--current'}'[Show current emerging packages]' \ |
216 |
+ {'(--logfile)-f','(-f)--logfile'}'[Read emerge logfile instead of /var/log/emerge.log]:log:_files' \ |
217 |
+ '*:packages:_gentoo_packages available' |
218 |
+ ;; |
219 |
+ qsearch) |
220 |
+ _arguments -s $common_args \ |
221 |
+ {'(--all)-a','(-a)--all'}'[List the descriptions of every package in the cache]' \ |
222 |
+ {'(--cache)-c','(-c)--cache'}'[Use the portage cache]' \ |
223 |
+ {'(--search)-s','(-s)--search'}'[Regex search package basenames]' \ |
224 |
+ {'(--desc)-S','(-S)--desc'}'[Regex search package descriptions]' \ |
225 |
+ {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \ |
226 |
+ {'(--homepage)-H','(-H)--homepage'}'[Show homepage info]' \ |
227 |
+ '*:pattern::' |
228 |
+ ;; |
229 |
+ qsize) |
230 |
+ _arguments -s $common_args \ |
231 |
+ {'(--filesystem)-f','(-f)--filesystem'}'[Show size used on disk]' \ |
232 |
+ {'(--all)-a','(-a)--all'}'[Size all installed packages]' \ |
233 |
+ {'(--sum)-s','(-s)--sum'}'[Include a summary]' \ |
234 |
+ {'(--sum-only)-S','(-S)--sum-only'}'[Show just the summary]' \ |
235 |
+ {'(--megabyte)-m','(-m)--megabyte'}'[Display size in megabytes]' \ |
236 |
+ {'(--kilobyte)-k','(-k)--kilobyte'}'[Display size in kilobytes]' \ |
237 |
+ {'(--byte)-b','(-b)--byte'}'[Display size in bytes]' \ |
238 |
+ '*:packages:_gentoo_packages installed' |
239 |
+ ;; |
240 |
+ quse) |
241 |
+ _arguments -s $common_args \ |
242 |
+ {'(--exact)-e','(-e)--exact'}'[Show exact non regexp matching using strcmp]' \ |
243 |
+ {'(--all)-a','(-a)--all'}'[Show annoying things in IUSE]' \ |
244 |
+ {'(--keywords)-K','(-K)--keywords'}'[Use the KEYWORDS vs IUSE]' \ |
245 |
+ {'(--license)-L','(-L)--license'}'[Use the LICENSE vs IUSE]' \ |
246 |
+ {'(--describe)-D','(-D)--describe'}'[Describe the USE flag]' \ |
247 |
+ {'(--name-only)-N','(-N)--name-only'}'[Only show package name]' \ |
248 |
+ '*:use flag:_gentoo_packages useflag' |
249 |
+ ;; |
250 |
+ qtbz2) |
251 |
+ _arguments -s $common_args \ |
252 |
+ {'(--join -s --split -t --tarbz2 -x --xpak)-j','(-t --tarbz2 -j -s --split -x --xpak)--join'}'[Join tar.bz2 + xpak into a tbz2]:*:tar.bz2 file and xpak file:_files -g \*.\(tar.bz2\|xpak\)' \ |
253 |
+ {'(--join -j --split -t --tarbz2 -x --xpak)-s','(-t --tarbz2 -j --join -s -x --xpak)--split'}'[Split a tbz2 into a tar.bz2 + xpak]:tbz2 file:_files -g \*.tbz2' \ |
254 |
+ {'(--join -j -s --split --tarbz2 -x --xpak)-t','(--join -j -s --split -t -x --xpak)--tarbz2'}'[Just split the tar.bz2]:tbz2 file:_files -g \*.tbz2' \ |
255 |
+ {'(--join -j -s --split -t --tarbz2 --xpak)-x','(--join -j -s --split -t --tarbz2 -x)--xpak'}'[Just split the xpak]:tbz2 file:_files -g \*.tbz2' \ |
256 |
+ {'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]' |
257 |
+ ;; |
258 |
+ qpkg) |
259 |
+ _arguments -s $common_args \ |
260 |
+ {'(--pretend)-p','(-p)--pretend'}'[pretend only]' \ |
261 |
+ {'(--pkgdir)-P','(-P)--pkgdir'}'[alternate package directory]:alternate pkgdir:_files -/' \ |
262 |
+ '*:Installed packages:_gentoo_packages installed_versions' |
263 |
+ ;; |
264 |
+ qxpak) |
265 |
+ _arguments -s $common_args \ |
266 |
+ {'(--list --extract -x --create -c)-l','(-l --extract -x --create -c)--list'}'[List the contents of an archive]:xpak archive:_files -g \*.xpak' \ |
267 |
+ {'(--list -l --extract --create -c)-x','(--list -l -x --create -c)--extract'}'[Extract the contents of an archive]:xpak archive:_files -g \*.xpak' \ |
268 |
+ {'(--list -l --extract -x --create)-c','(--list -l --extract -x -c)--create'}'[Create an archive of a directory/files]:*:archive name and files to archive:_files' \ |
269 |
+ {'(--dir)-d','(-d)--dir'}'[Change to specified directory]:directory:_files -/' \ |
270 |
+ {'(--stdout)-O','(-O)--stdout'}'[Write files to stdout]' |
271 |
+ ;; |
272 |
esac |