forked from diogocavilha/fancy-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fancygit-completion
62 lines (60 loc) · 1.62 KB
/
fancygit-completion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
_fancygit() {
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts='-h \
--help \
-v \
--version \
--update \
--fonts-install \
--changelog-show \
--suggested-global-git-config \
--suggested-global-git-config-apply \
--show-color-schemes \
--show-color-schemes-all \
--show-themes \
--enable-full-path \
--disable-full-path \
--enable-show-user-at-machine \
--disable-show-user-at-machine \
--enable-time \
--disable-time \
--enable-double-line \
--disable-double-line \
--enable-rich-notification \
--disable-rich-notification \
--set-user-name \
--unset-user-name \
--set-host-name \
--unset-host-name \
--config-list \
--separator-default \
--separator-blocks \
--separator-blocks-tiny \
--separator-fire \
--separator-lego \
--separator-curve \
--separator-paint \
--theme-default \
--theme-human \
--theme-simple \
--color-scheme-simple \
--color-scheme-human \
--color-scheme-default \
--color-scheme-dracula \
--color-scheme-batman \
--color-scheme-robin \
--color-scheme-light \
--color-scheme-neon \
--color-scheme-cga \
--color-scheme-superman \
--reset
'
if [[ ${cur} == * ]] ; then
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
return 0
fi
}
complete -F _fancygit fancygit