Debian Codegraph @

etc/completion/completion.bash

raw symbols SCIP
1 _deltascip-shell shell shell-project 0.0.0 _delta().() {
2 local i cur prev opts cmd
3 COMPREPLY=()
4 cur="${COMP_WORDS[COMP_CWORD]}"
5 prev="${COMP_WORDS[COMP_CWORD-1]}"
6 cmd=""
7 opts=""
8
9 for i in ${COMP_WORDS[@]}
10 do
11 case "${cmd},${i}" in
12 ",$1")
13 cmd="delta"
14 ;;
15 *)
16 ;;
17 esac
18 done
19
20 case "${cmd}" in
21 delta)
22 opts="-n -s -w -h -V --blame-code-style --blame-format --blame-palette --blame-separator-format --blame-separator-style --blame-timestamp-format --blame-timestamp-output-format --color-only --config --commit-decoration-style --commit-regex --commit-style --dark --default-language --diff-highlight --diff-so-fancy --diff-stat-align-width --features --file-added-label --file-copied-label --file-decoration-style --file-modified-label --file-removed-label --file-renamed-label --file-style --file-transformation --generate-completion --grep-context-line-style --grep-file-style --grep-header-decoration-style --grep-header-file-style --grep-line-number-style --grep-output-type --grep-match-line-style --grep-match-word-style --grep-separator-symbol --hunk-header-decoration-style --hunk-header-file-style --hunk-header-line-number-style --hunk-header-style --hunk-label --hyperlinks --hyperlinks-commit-link-format --hyperlinks-file-link-format --inline-hint-style --inspect-raw-lines --keep-plus-minus-markers --light --line-buffer-size --line-fill-method --line-numbers --line-numbers-left-format --line-numbers-left-style --line-numbers-minus-style --line-numbers-plus-style --line-numbers-right-format --line-numbers-right-style --line-numbers-zero-style --list-languages --list-syntax-themes --map-styles --max-line-distance --max-line-length --merge-conflict-begin-symbol --merge-conflict-end-symbol --merge-conflict-ours-diff-header-decoration-style --merge-conflict-ours-diff-header-style --merge-conflict-theirs-diff-header-decoration-style --merge-conflict-theirs-diff-header-style --minus-empty-line-marker-style --minus-emph-style --minus-non-emph-style --minus-style --navigate --navigate-regex --no-gitconfig --pager --paging --parse-ansi --plus-emph-style --plus-empty-line-marker-style --plus-non-emph-style --plus-style --raw --relative-paths --right-arrow --show-colors --show-config --show-syntax-themes --show-themes --side-by-side --syntax-theme --tabs --true-color --whitespace-error-style --width --word-diff-regex --wrap-left-symbol --wrap-max-lines --wrap-right-percent --wrap-right-prefix-symbol --wrap-right-symbol --zero-style --24-bit-color --help --version [MINUS_FILE] [PLUS_FILE]"
23 if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
24 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
25 return 0
26 fi
27 case "${prev}" in
28 --blame-code-style)
29 COMPREPLY=($(compgen -f "${cur}"))
30 return 0
31 ;;
32 --blame-format)
33 COMPREPLY=($(compgen -f "${cur}"))
34 return 0
35 ;;
36 --blame-palette)
37 COMPREPLY=($(compgen -f "${cur}"))
38 return 0
39 ;;
40 --blame-separator-format)
41 COMPREPLY=($(compgen -f "${cur}"))
42 return 0
43 ;;
44 --blame-separator-style)
45 COMPREPLY=($(compgen -f "${cur}"))
46 return 0
47 ;;
48 --blame-timestamp-format)
49 COMPREPLY=($(compgen -f "${cur}"))
50 return 0
51 ;;
52 --blame-timestamp-output-format)
53 COMPREPLY=($(compgen -f "${cur}"))
54 return 0
55 ;;
56 --config)
57 COMPREPLY=($(compgen -f "${cur}"))
58 return 0
59 ;;
60 --commit-decoration-style)
61 COMPREPLY=($(compgen -f "${cur}"))
62 return 0
63 ;;
64 --commit-regex)
65 COMPREPLY=($(compgen -f "${cur}"))
66 return 0
67 ;;
68 --commit-style)
69 COMPREPLY=($(compgen -f "${cur}"))
70 return 0
71 ;;
72 --default-language)
73 COMPREPLY=($(compgen -f "${cur}"))
74 return 0
75 ;;
76 --diff-stat-align-width)
77 COMPREPLY=($(compgen -f "${cur}"))
78 return 0
79 ;;
80 --features)
81 COMPREPLY=($(compgen -f "${cur}"))
82 return 0
83 ;;
84 --file-added-label)
85 COMPREPLY=($(compgen -f "${cur}"))
86 return 0
87 ;;
88 --file-copied-label)
89 COMPREPLY=($(compgen -f "${cur}"))
90 return 0
91 ;;
92 --file-decoration-style)
93 COMPREPLY=($(compgen -f "${cur}"))
94 return 0
95 ;;
96 --file-modified-label)
97 COMPREPLY=($(compgen -f "${cur}"))
98 return 0
99 ;;
100 --file-removed-label)
101 COMPREPLY=($(compgen -f "${cur}"))
102 return 0
103 ;;
104 --file-renamed-label)
105 COMPREPLY=($(compgen -f "${cur}"))
106 return 0
107 ;;
108 --file-style)
109 COMPREPLY=($(compgen -f "${cur}"))
110 return 0
111 ;;
112 --file-transformation)
113 COMPREPLY=($(compgen -f "${cur}"))
114 return 0
115 ;;
116 --generate-completion)
117 COMPREPLY=($(compgen -W "bash elvish fish powershell zsh" -- "${cur}"))
118 return 0
119 ;;
120 --grep-context-line-style)
121 COMPREPLY=($(compgen -f "${cur}"))
122 return 0
123 ;;
124 --grep-file-style)
125 COMPREPLY=($(compgen -f "${cur}"))
126 return 0
127 ;;
128 --grep-header-decoration-style)
129 COMPREPLY=($(compgen -f "${cur}"))
130 return 0
131 ;;
132 --grep-header-file-style)
133 COMPREPLY=($(compgen -f "${cur}"))
134 return 0
135 ;;
136 --grep-line-number-style)
137 COMPREPLY=($(compgen -f "${cur}"))
138 return 0
139 ;;
140 --grep-output-type)
141 COMPREPLY=($(compgen -W "ripgrep classic" -- "${cur}"))
142 return 0
143 ;;
144 --grep-match-line-style)
145 COMPREPLY=($(compgen -f "${cur}"))
146 return 0
147 ;;
148 --grep-match-word-style)
149 COMPREPLY=($(compgen -f "${cur}"))
150 return 0
151 ;;
152 --grep-separator-symbol)
153 COMPREPLY=($(compgen -f "${cur}"))
154 return 0
155 ;;
156 --hunk-header-decoration-style)
157 COMPREPLY=($(compgen -f "${cur}"))
158 return 0
159 ;;
160 --hunk-header-file-style)
161 COMPREPLY=($(compgen -f "${cur}"))
162 return 0
163 ;;
164 --hunk-header-line-number-style)
165 COMPREPLY=($(compgen -f "${cur}"))
166 return 0
167 ;;
168 --hunk-header-style)
169 COMPREPLY=($(compgen -f "${cur}"))
170 return 0
171 ;;
172 --hunk-label)
173 COMPREPLY=($(compgen -f "${cur}"))
174 return 0
175 ;;
176 --hyperlinks-commit-link-format)
177 COMPREPLY=($(compgen -f "${cur}"))
178 return 0
179 ;;
180 --hyperlinks-file-link-format)
181 COMPREPLY=($(compgen -f "${cur}"))
182 return 0
183 ;;
184 --inline-hint-style)
185 COMPREPLY=($(compgen -f "${cur}"))
186 return 0
187 ;;
188 --inspect-raw-lines)
189 COMPREPLY=($(compgen -W "true false" -- "${cur}"))
190 return 0
191 ;;
192 --line-buffer-size)
193 COMPREPLY=($(compgen -f "${cur}"))
194 return 0
195 ;;
196 --line-fill-method)
197 COMPREPLY=($(compgen -W "ansi spaces" -- "${cur}"))
198 return 0
199 ;;
200 --line-numbers-left-format)
201 COMPREPLY=($(compgen -f "${cur}"))
202 return 0
203 ;;
204 --line-numbers-left-style)
205 COMPREPLY=($(compgen -f "${cur}"))
206 return 0
207 ;;
208 --line-numbers-minus-style)
209 COMPREPLY=($(compgen -f "${cur}"))
210 return 0
211 ;;
212 --line-numbers-plus-style)
213 COMPREPLY=($(compgen -f "${cur}"))
214 return 0
215 ;;
216 --line-numbers-right-format)
217 COMPREPLY=($(compgen -f "${cur}"))
218 return 0
219 ;;
220 --line-numbers-right-style)
221 COMPREPLY=($(compgen -f "${cur}"))
222 return 0
223 ;;
224 --line-numbers-zero-style)
225 COMPREPLY=($(compgen -f "${cur}"))
226 return 0
227 ;;
228 --map-styles)
229 COMPREPLY=($(compgen -f "${cur}"))
230 return 0
231 ;;
232 --max-line-distance)
233 COMPREPLY=($(compgen -f "${cur}"))
234 return 0
235 ;;
236 --max-line-length)
237 COMPREPLY=($(compgen -f "${cur}"))
238 return 0
239 ;;
240 --merge-conflict-begin-symbol)
241 COMPREPLY=($(compgen -f "${cur}"))
242 return 0
243 ;;
244 --merge-conflict-end-symbol)
245 COMPREPLY=($(compgen -f "${cur}"))
246 return 0
247 ;;
248 --merge-conflict-ours-diff-header-decoration-style)
249 COMPREPLY=($(compgen -f "${cur}"))
250 return 0
251 ;;
252 --merge-conflict-ours-diff-header-style)
253 COMPREPLY=($(compgen -f "${cur}"))
254 return 0
255 ;;
256 --merge-conflict-theirs-diff-header-decoration-style)
257 COMPREPLY=($(compgen -f "${cur}"))
258 return 0
259 ;;
260 --merge-conflict-theirs-diff-header-style)
261 COMPREPLY=($(compgen -f "${cur}"))
262 return 0
263 ;;
264 --minus-empty-line-marker-style)
265 COMPREPLY=($(compgen -f "${cur}"))
266 return 0
267 ;;
268 --minus-emph-style)
269 COMPREPLY=($(compgen -f "${cur}"))
270 return 0
271 ;;
272 --minus-non-emph-style)
273 COMPREPLY=($(compgen -f "${cur}"))
274 return 0
275 ;;
276 --minus-style)
277 COMPREPLY=($(compgen -f "${cur}"))
278 return 0
279 ;;
280 --navigate-regex)
281 COMPREPLY=($(compgen -f "${cur}"))
282 return 0
283 ;;
284 --pager)
285 COMPREPLY=($(compgen -f "${cur}"))
286 return 0
287 ;;
288 --paging)
289 COMPREPLY=($(compgen -W "auto always never" -- "${cur}"))
290 return 0
291 ;;
292 --plus-emph-style)
293 COMPREPLY=($(compgen -f "${cur}"))
294 return 0
295 ;;
296 --plus-empty-line-marker-style)
297 COMPREPLY=($(compgen -f "${cur}"))
298 return 0
299 ;;
300 --plus-non-emph-style)
301 COMPREPLY=($(compgen -f "${cur}"))
302 return 0
303 ;;
304 --plus-style)
305 COMPREPLY=($(compgen -f "${cur}"))
306 return 0
307 ;;
308 --right-arrow)
309 COMPREPLY=($(compgen -f "${cur}"))
310 return 0
311 ;;
312 --syntax-theme)
313 COMPREPLY=($(compgen -f "${cur}"))
314 return 0
315 ;;
316 --tabs)
317 COMPREPLY=($(compgen -f "${cur}"))
318 return 0
319 ;;
320 --true-color)
321 COMPREPLY=($(compgen -W "auto always never" -- "${cur}"))
322 return 0
323 ;;
324 --whitespace-error-style)
325 COMPREPLY=($(compgen -f "${cur}"))
326 return 0
327 ;;
328 --width)
329 COMPREPLY=($(compgen -f "${cur}"))
330 return 0
331 ;;
332 -w)
333 COMPREPLY=($(compgen -f "${cur}"))
334 return 0
335 ;;
336 --word-diff-regex)
337 COMPREPLY=($(compgen -f "${cur}"))
338 return 0
339 ;;
340 --wrap-left-symbol)
341 COMPREPLY=($(compgen -f "${cur}"))
342 return 0
343 ;;
344 --wrap-max-lines)
345 COMPREPLY=($(compgen -f "${cur}"))
346 return 0
347 ;;
348 --wrap-right-percent)
349 COMPREPLY=($(compgen -f "${cur}"))
350 return 0
351 ;;
352 --wrap-right-prefix-symbol)
353 COMPREPLY=($(compgen -f "${cur}"))
354 return 0
355 ;;
356 --wrap-right-symbol)
357 COMPREPLY=($(compgen -f "${cur}"))
358 return 0
359 ;;
360 --zero-style)
361 COMPREPLY=($(compgen -f "${cur}"))
362 return 0
363 ;;
364 --24-bit-color)
365 COMPREPLY=($(compgen -W "auto always never" -- "${cur}"))
366 return 0
367 ;;
368 *)
369 COMPREPLY=()
370 ;;
371 esac
372 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
373 return 0
374 ;;
375 esac
376 }
377
378 # nosort isn't supported for bash less than < 4.4
379 if [[ ${BASH_VERSINFO[0]} -lt 4 || ( ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -lt 4 ) ]]; then
380 complete -F _delta -o bashdefault -o default delta
381 else
382 complete -F _delta -o bashdefault -o default -o nosort delta
383 fi