File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ _hddtemp()
6
6
_init_completion -s || return
7
7
8
8
case $prev in
9
- -f|--file )
9
+ --file|- ! (- * )f )
10
10
_filedir db
11
11
return
12
12
;;
13
- -l|--listen )
13
+ --listen|- ! (- * )l )
14
14
_ip_addresses
15
15
return
16
16
;;
17
- -u|--unit )
17
+ --unit|- ! (- * )u )
18
18
COMPREPLY=( $( compgen -W ' C F' -- " $cur " ) )
19
19
return
20
20
;;
21
- -p|-- port|-s|-- separator|-S|-- syslog|-v|-- version|-h|- \? |--help )
21
+ -- port|-- separator|-- syslog|-- version|--help|- ! (- * )[psSvh ? ] )
22
22
return
23
23
;;
24
24
esac
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ _hostname()
6
6
_init_completion || return
7
7
8
8
case $prev in
9
- -h|-- help|-V|--version )
9
+ -- help|--version|- ! (- * )[hV] )
10
10
return
11
11
;;
12
- -F|--file )
12
+ --file|- ! (- * )F )
13
13
_filedir
14
14
return
15
15
;;
Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ _hping2()
6
6
_init_completion || return
7
7
8
8
case $prev in
9
- -I|--interface )
9
+ --interface|- ! (- * )I )
10
10
_available_interfaces
11
11
return
12
12
;;
13
- -a|--spoof )
13
+ --spoof|- ! (- * )a )
14
14
_known_hosts_real -- " $cur "
15
15
return
16
16
;;
17
- -o|--tos )
17
+ --tos|- ! (- * )o )
18
18
COMPREPLY=( $( compgen -W ' 02 04 08 10' ) )
19
19
return
20
20
;;
21
- -E|--file )
21
+ --file|- ! (- * )E )
22
22
_filedir
23
23
return
24
24
;;
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ _htop()
6
6
_init_completion -s || return
7
7
8
8
case " $prev " in
9
- -s|-- sort-key)
9
+ -- sort-key|- ! (- * )s )
10
10
COMPREPLY=( $( compgen -W ' $( "$1" -s help )' -- " $cur " ) )
11
11
return
12
12
;;
13
- -u|--user )
13
+ --user|- ! (- * )u )
14
14
COMPREPLY=( $( compgen -u -- " $cur " ) )
15
15
return
16
16
;;
17
- -d|--delay )
17
+ --delay|- ! (- * )d )
18
18
# argument required but no completions available
19
19
return
20
20
;;
You can’t perform that action at this time.
0 commit comments