File tree Expand file tree Collapse file tree 8 files changed +34
-34
lines changed Expand file tree Collapse file tree 8 files changed +34
-34
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ _iconv()
6
6
_init_completion -s || return
7
7
8
8
case $prev in
9
- -' ? ' |-- help|--usage|-V |--version|--unicode-subst|--byte-subst|\
10
- --widechar-subst)
9
+ -- help|--usage|--version|--unicode-subst|--byte-subst|\
10
+ --widechar-subst|- ! (- * )[ ? V] )
11
11
return
12
12
;;
13
- -f|-- from-code|-t|-- to-code)
13
+ -- from-code|-- to-code|- ! (- * )[ft] )
14
14
COMPREPLY=( $( compgen -W ' $( iconv -l | \
15
15
command sed -e "s@/*\$@@" -e "s/[,()]//g" )' -- " $cur " ) )
16
16
return
17
17
;;
18
- -o|--output )
18
+ --output|- ! (- * )o )
19
19
_filedir
20
20
return
21
21
;;
Original file line number Diff line number Diff line change 6
6
_init_completion -s || return
7
7
8
8
case $prev in
9
- -h|-- help|-V|--version )
9
+ -- help|--version|- ! (- * )[hV] )
10
10
return
11
11
;;
12
- -p|--profile )
12
+ --profile|- ! (- * )p )
13
13
COMPREPLY=( $( compgen -W ' Nameprep iSCSI Nodeprep Resourceprep
14
14
trace SASLprep' -- " $cur " ) )
15
15
return
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ _info()
12
12
fi
13
13
14
14
case $prev in
15
- -k|-- apropos|--index-search|-n|-- node|-h|-- help|-v|--version )
15
+ -- apropos|--index-search|-- node|-- help|--version|- ! (- * )[knhv] )
16
16
return
17
17
;;
18
- -d)
18
+ -! (- * ) d)
19
19
if [[ ${1##*/ } == info ]]; then
20
20
_filedir -d
21
21
return
@@ -25,7 +25,7 @@ _info()
25
25
_filedir -d
26
26
return
27
27
;;
28
- --dribble|-f|-- file|-o|-- output|--restore|-r|-- raw-filename|--rcfile)
28
+ --dribble|-- file|-- output|--restore|-- raw-filename|--rcfile|- ! (- * )[for] )
29
29
_filedir
30
30
return
31
31
;;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ _interdiff()
6
6
_init_completion -s || return
7
7
8
8
case $prev in
9
- -U|-- unified|-p|-- strip-match|-d|-- drop-context)
9
+ -- unified|-- strip-match|-- drop-context|- ! (- * )[Upd] )
10
10
return
11
11
;;
12
12
esac
Original file line number Diff line number Diff line change @@ -6,33 +6,33 @@ _iperf()
6
6
_init_completion -s || return
7
7
8
8
case $prev in
9
- -h|-- help|-v|-- version|-i|-- interval|-l|-- len|-p |--port|-w |--window |\
10
- -M |--mss|-b|--bandwidth|-n|--num|-t|--time|-L|--listenport|-P |\
11
- --parallel|-T|--ttl|-Z|--linux-congestion )
9
+ -- help|-- version|-- interval|-- len|--port |--window|--mss |--bandwidth |\
10
+ --num |--time|--listenport|--parallel|--ttl|--linux-congestion |\
11
+ -! (- * )[hvilpwMbntLPTZ] )
12
12
return
13
13
;;
14
- -f|--format )
14
+ --format|- ! (- * )f )
15
15
COMPREPLY=( $( compgen -W ' k m K M' -- " $cur " ) )
16
16
return
17
17
;;
18
- -o|-- output|-F|--fileinput )
18
+ -- output|--fileinput|- ! (- * )[oF] )
19
19
_filedir
20
20
return
21
21
;;
22
- -B|--bind )
22
+ --bind|- ! (- * )B )
23
23
_available_interfaces -a
24
24
_ip_addresses
25
25
return
26
26
;;
27
- -c|--client )
27
+ --client|- ! (- * )c )
28
28
_known_hosts_real -- " $cur "
29
29
return
30
30
;;
31
- -x|--reportexclude )
31
+ --reportexclude|- ! (- * )x )
32
32
COMPREPLY=( $( compgen -W ' C D M S V' -- " $cur " ) )
33
33
return
34
34
;;
35
- -y|--reportstyle )
35
+ --reportstyle|- ! (- * )y )
36
36
COMPREPLY=( $( compgen -W ' C' -- " $cur " ) )
37
37
return
38
38
;;
Original file line number Diff line number Diff line change @@ -12,45 +12,45 @@ _ipmitool()
12
12
_init_completion || return
13
13
14
14
case $prev in
15
- -h|-V|-p|-U|-e|-k|-y|-P|-m|-b|-t|-B|-T|-l )
15
+ -* [hVpUekyPmbtBTl] )
16
16
return
17
17
;;
18
- -d)
18
+ -* d)
19
19
COMPREPLY=( $( compgen -W " $( \
20
20
command ls -d /dev/ipmi* /dev/ipmi/* /dev/ipmidev/* \
21
21
2> /dev/null | command sed -ne ' s/^[^0-9]*\([0-9]\{1,\}\)/\1/p' ) " \
22
22
-- " $cur " ) )
23
23
return
24
24
;;
25
- -I)
25
+ -* I)
26
26
COMPREPLY=( $( compgen -W " $( $1 -h 2>&1 | \
27
27
command sed -e ' /^Interfaces:/,/^[[:space:]]*$/!d' \
28
28
-ne ' s/^[[:space:]]\{1,\}\([^[:space:]]\{1,\}\).*/\1/p' ) " \
29
29
-- " $cur " ) )
30
30
return
31
31
;;
32
- -H)
32
+ -* H)
33
33
_known_hosts_real -- " $cur "
34
34
return
35
35
;;
36
- -f|-S|-O )
36
+ -* [fSO] )
37
37
_filedir
38
38
return
39
39
;;
40
- -C)
40
+ -* C)
41
41
COMPREPLY=( $( compgen -W ' {0..14}' -- " $cur " ) )
42
42
return
43
43
;;
44
- -L)
44
+ -* L)
45
45
COMPREPLY=( $( compgen -W ' CALLBACK USER OPERATOR ADMINISTRATOR' \
46
46
-- " $cur " ) )
47
47
return
48
48
;;
49
- -A)
49
+ -* A)
50
50
COMPREPLY=( $( compgen -W ' NONE PASSWORD MD2 MD5 OEM' -- " $cur " ) )
51
51
return
52
52
;;
53
- -o)
53
+ -* o)
54
54
COMPREPLY=( $( compgen -W " $( $1 -o list 2>&1 | \
55
55
awk ' /^[ \t]+/ { print $1 }' ) list" -- " $cur " ) )
56
56
return
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ _ipv6calc()
6
6
_init_completion -s || return
7
7
8
8
case " $prev " in
9
- -d|--debug )
9
+ --debug|- ! (- * )d )
10
10
return
11
11
;;
12
- -I|-- in|-O|-- out|-A|--action )
12
+ -- in|-- out|--action|- ! (- * )[IOA] )
13
13
# With ipv6calc < 0.73.0, -m does nothing here, so use sed instead.
14
14
COMPREPLY=( $( compgen -W " $( $1 " $prev " -h 2>&1 | \
15
15
command sed -ne ' s/^[[:space:]]\{1,\}\([^[:space:]:]\{1,\}\)[[:space:]]*:.*/\1/p' ) " \
Original file line number Diff line number Diff line change @@ -6,20 +6,20 @@ _iscsiadm()
6
6
_init_completion -s || return
7
7
8
8
case $prev in
9
- -m|--mode )
9
+ --mode|- ! (- * )m )
10
10
COMPREPLY=( $( compgen -W ' discovery node session iface fw host' \
11
11
-- " $cur " ) )
12
12
return
13
13
;;
14
- -o|--op )
14
+ --op|- ! (- * )o )
15
15
COMPREPLY=( $( compgen -W ' new delete update show' -- " $cur " ) )
16
16
return
17
17
;;
18
- -t|--type )
18
+ --type|- ! (- * )t )
19
19
COMPREPLY=( $( compgen -W ' sendtargets st slp isns fw' -- " $cur " ) )
20
20
return
21
21
;;
22
- -L|-U |--loginall|--logoutall )
22
+ --loginall |--logoutall|- ! (- * )[LU] )
23
23
COMPREPLY=( $( compgen -W ' all manual automatic' -- " $cur " ) )
24
24
return
25
25
;;
You can’t perform that action at this time.
0 commit comments