File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ _getent()
8
8
local i db
9
9
for (( i= 1 ; i < cword; i++ )) ; do
10
10
case ${words[i]} in
11
- -V|-- version|--usage|-' ? ' |--help )
11
+ -- version|--usage|--help|- ! (- * )[V ? ] )
12
12
return
13
13
;;
14
- -s|--service )
14
+ --service|- ! (- * )s )
15
15
(( i++ ))
16
16
;;
17
17
-* )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ _gpasswd()
6
6
_init_completion || return
7
7
8
8
case $prev in
9
- -a|-- add|-d|-- delete|-A|-- administrators|-M|--members )
9
+ -- add|-- delete|-- administrators|--members|- ! (- * )[adAM] )
10
10
COMPREPLY=( $( compgen -u -- " $cur " ) )
11
11
return
12
12
;;
Original file line number Diff line number Diff line change 6
6
_init_completion || return
7
7
8
8
case $prev in
9
- -s|-- sign|--clearsign|--decrypt-files|--load-extension)
9
+ -- sign|--clearsign|--decrypt-files|--load-extension|- ! (- * )s )
10
10
_filedir
11
11
return
12
12
;;
17
17
' s@^.*\(<\([^>]*\)>\).*$@\2@p' ) " -- " $cur " ) )
18
18
return
19
19
;;
20
- -r|--recipient )
20
+ --recipient|- ! (- * )r )
21
21
COMPREPLY=( $( compgen -W " $( $1 --list-keys 2> /dev/null | command sed -ne \
22
22
' s@^.*<\([^>]*\)>.*$@\1@p' ) " -- " $cur " ) )
23
23
if [[ -e ~ /.gnupg/gpg.conf ]]; then
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ _gpg2()
10
10
_filedir -d
11
11
return
12
12
;;
13
- -s|-- sign|--clearsign|--options|--decrypt)
13
+ -- sign|--clearsign|--options|--decrypt|- ! (- * )s )
14
14
_filedir
15
15
return
16
16
;;
@@ -21,7 +21,7 @@ _gpg2()
21
21
' s@^.*\(<\([^>]*\)>\).*$@\2@p' ) " -- " $cur " ) )
22
22
return
23
23
;;
24
- -r|--recipient )
24
+ --recipient|- ! (- * )r )
25
25
COMPREPLY=( $( compgen -W " $( $1 --list-keys 2> /dev/null | \
26
26
command sed -ne ' s@^.*<\([^>]*\)>.*$@\1@p' ) " -- " $cur " ) )
27
27
if [[ -e ~ /.gnupg/gpg.conf ]]; then
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ _groupadd()
9
9
# with -g/--gid
10
10
11
11
case $prev in
12
- -g|-- gid|-K|-- key|-p|--password )
12
+ -- gid|-- key|--password|- ! (- * )[gKp] )
13
13
return
14
14
;;
15
15
esac
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ _groupmod()
9
9
# with -g/--gid
10
10
11
11
case $prev in
12
- -g|-- gid|-h|-- help|-n|-- new-name|-p|--password )
12
+ -- gid|-- help|-- new-name|--password|- ! (- * )[ghnp] )
13
13
return
14
14
;;
15
15
esac
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ _gzip()
6
6
_init_completion || return
7
7
8
8
case $prev in
9
- -b|-- blocksize|-S|-- suffix|-h|-- help|-V|--version )
9
+ -- blocksize|-- suffix|-- help|--version|- ! (- * )[bShV] )
10
10
return
11
11
;;
12
- -p|--processes )
12
+ --processes|- ! (- * )p )
13
13
COMPREPLY=( $( compgen -W " {1..$( _ncpus) }" -- " $cur " ) )
14
14
return
15
15
;;
You can’t perform that action at this time.
0 commit comments