-
Notifications
You must be signed in to change notification settings - Fork 64
/
fancygit-completion
71 lines (69 loc) · 1.9 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
63
64
65
66
67
68
69
70
71
_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 \
--enable-bold-prompt \
--disable-bold-prompt \
--enable-host-name \
--disable-host-name \
--enable-user-symbol \
--disable-user-symbol \
--enable-git-clear \
--disable-git-clear \
--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-human-dracula \
--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