forked from diogocavilha/fancy-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfancygit-completion
More file actions
41 lines (39 loc) · 919 Bytes
/
Copy pathfancygit-completion
File metadata and controls
41 lines (39 loc) · 919 Bytes
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
_fancygit() {
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts='-h \
--help \
-v \
--version \
update \
configure-fonts \
human \
human-single-line \
human-dark \
human-dark-single-line \
default \
double-line \
simple \
simple-double-line \
dark \
dark-double-line \
dark-col-double-line \
light \
light-double-line \
--colors \
--colors-set \
--enable-full-path \
--disable-full-path \
--enable-show-user-at-machine \
--disable-show-user-at-machine \
--config-list \
--config-reset
'
if [[ ${cur} == * ]] ; then
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
return 0
fi
}
complete -F _fancygit fancygit