File tree Expand file tree Collapse file tree 5 files changed +78
-0
lines changed Expand file tree Collapse file tree 5 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 59
59
gmplayer
60
60
gnumake
61
61
gpc
62
+ gpgv2
62
63
hciattach
63
64
hciconfig
64
65
hd
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ bashcomp_DATA = 2to3 \
129
129
gpasswd \
130
130
gpg \
131
131
gpg2 \
132
+ gpgv \
132
133
gphoto2 \
133
134
gprof \
134
135
groupadd \
@@ -517,6 +518,7 @@ CLEANFILES = \
517
518
gmplayer \
518
519
gnumake \
519
520
gpc \
521
+ gpgv2 \
520
522
hciattach \
521
523
hciconfig \
522
524
hd \
@@ -785,6 +787,10 @@ symlinks: $(targetdir) $(DATA)
785
787
rm -f $(targetdir ) /$$ file && \
786
788
$(LN_S ) gkrellm $(targetdir ) /$$ file ; \
787
789
done
790
+ for file in gpgv2 ; do \
791
+ rm -f $(targetdir ) /$$ file && \
792
+ $(LN_S ) gpgv $(targetdir ) /$$ file ; \
793
+ done
788
794
for file in pigz ; do \
789
795
rm -f $(targetdir ) /$$ file && \
790
796
$(LN_S ) gzip $(targetdir ) /$$ file ; \
Original file line number Diff line number Diff line change
1
+ # gpgv(1) completion -*- shell-script -*-
2
+
3
+ _gpgv ()
4
+ {
5
+ local cur prev words cword
6
+ _init_completion || return
7
+
8
+ case $prev in
9
+ --help|--version|--weak-digest|--* -fd|-! (-* )[? h]* )
10
+ return
11
+ ;;
12
+ --keyring)
13
+ _filedir " @(gpg|kbx)"
14
+ return
15
+ ;;
16
+ --homedir)
17
+ _filedir -d
18
+ return
19
+ ;;
20
+ esac
21
+
22
+ local args
23
+ _count_args " " " --@(weak-digest|*-fd|keyring|homedir)"
24
+
25
+ if [[ $cur == -* && $args -eq 1 ]]; then
26
+ COMPREPLY=( $( compgen -W ' $( _parse_help "$1" )' -- " $cur " ) )
27
+ return
28
+ fi
29
+
30
+ if [[ $args -gt 1 ]]; then
31
+ if [[ ${COMP_LINE,,} == * .@ (asc| sig| sign)\ * ]]; then
32
+ # Detached signature, only complete one arbitrary file arg and -
33
+ if [[ $args -eq 2 ]]; then
34
+ COMPREPLY=( $( compgen -W ' -' -- " $cur " ) )
35
+ _filedir
36
+ fi
37
+ else
38
+ _filedir gpg
39
+ fi
40
+ else
41
+ _filedir " @(asc|gpg|sig|sign)"
42
+ fi
43
+ } &&
44
+ complete -F _gpgv gpgv gpgv2
45
+
46
+ # ex: filetype=sh
Original file line number Diff line number Diff line change
1
+ assert_source_completions gpgv
Original file line number Diff line number Diff line change
1
+ proc setup {} {
2
+ save_env
3
+ }
4
+
5
+
6
+ proc teardown {} {
7
+ assert_env_unmodified
8
+ }
9
+
10
+
11
+ setup
12
+
13
+
14
+ assert_complete_any "gpgv "
15
+ sync_after_int
16
+
17
+ assert_complete_any "gpgv -"
18
+ sync_after_int
19
+
20
+ assert_no_complete "gpgv foo.sig foo "
21
+ sync_after_int
22
+
23
+
24
+ teardown
You can’t perform that action at this time.
0 commit comments