summaryrefslogtreecommitdiff
path: root/completions/hcitool
diff options
context:
space:
mode:
Diffstat (limited to 'completions/hcitool')
-rw-r--r--completions/hcitool63
1 files changed, 30 insertions, 33 deletions
diff --git a/completions/hcitool b/completions/hcitool
index 0a743e48..b650e205 100644
--- a/completions/hcitool
+++ b/completions/hcitool
@@ -16,9 +16,9 @@ _bluetooth_devices()
_bluetooth_services()
{
- COMPREPLY=( $( compgen -W 'DID SP DUN LAN FAX OPUSH FTP HS HF HFAG \
- SAP NAP GN PANU HCRP HID CIP A2SRC A2SNK AVRCT AVRTG UDIUE \
- UDITE SYNCML' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'DID SP DUN LAN FAX OPUSH FTP HS HF HFAG SAP NAP
+ GN PANU HCRP HID CIP A2SRC A2SNK AVRCT AVRTG UDIUE UDITE SYNCML' \
+ -- "$cur" ) )
}
_bluetooth_packet_types()
@@ -55,9 +55,9 @@ _hcitool()
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else
- COMPREPLY=( $( compgen -W 'dev inq scan name info \
- spinq epinq cmd con cc dc sr cpt rssi lq tpl \
- afh lst auth enc key clkoff clock' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'dev inq scan name info spinq epinq cmd
+ con cc dc sr cpt rssi lq tpl afh lst auth enc key clkoff
+ clock' -- "$cur" ) )
fi
else
case $arg in
@@ -126,15 +126,15 @@ _sdptool()
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else
- COMPREPLY=( $( compgen -W 'search browse records add \
- del get setattr setseq' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'search browse records add del get
+ setattr setseq' -- "$cur" ) )
fi
else
case $arg in
search)
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--bdaddr \
- --tree --raw --xml' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '--bdaddr --tree --raw --xml' \
+ -- "$cur" ) )
else
_bluetooth_services
fi
@@ -155,8 +155,8 @@ _sdptool()
;;
get)
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--bdaddr \
- --tree --raw --xml' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '--bdaddr --tree --raw --xml' \
+ -- "$cur" ) )
fi
;;
esac
@@ -210,8 +210,8 @@ _rfcomm()
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else
- COMPREPLY=( $( compgen -W 'show connect listen watch \
- bind release' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'show connect listen watch bind
+ release' -- "$cur" ) )
fi
else
_count_args
@@ -249,8 +249,8 @@ _ciptool()
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else
- COMPREPLY=( $( compgen -W 'show search connect release \
- loopback' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'show search connect release loopback' \
+ -- "$cur" ) )
fi
else
case $arg in
@@ -284,8 +284,8 @@ _dfutool()
_count_args
case $args in
1)
- COMPREPLY=( $( compgen -W 'verify modify \
- upgrade archive' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'verify modify upgrade archive' \
+ -- "$cur" ) )
;;
2)
_filedir
@@ -306,13 +306,11 @@ _hciconfig()
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--help --all' -- "$cur" ) )
else
- COMPREPLY=( $( compgen -W 'up down reset rstat auth \
- noauth encrypt noencrypt secmgr nosecmgr \
- piscan noscan iscan pscan ptype name class \
- voice iac inqmode inqdata inqtype inqparams \
- pageparms pageto afhmode aclmtu scomtu putkey \
- delkey commands features version revision lm' \
- -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'up down reset rstat auth noauth encrypt
+ noencrypt secmgr nosecmgr piscan noscan iscan pscan ptype name
+ class voice iac inqmode inqdata inqtype inqparams pageparms
+ pageto afhmode aclmtu scomtu putkey delkey commands features
+ version revision lm' -- "$cur" ) )
fi
else
case $arg in
@@ -325,8 +323,8 @@ _hciconfig()
lm)
_count_args
if [[ $args -eq 2 ]]; then
- COMPREPLY=( $( compgen -W 'MASTER \
- SLAVE NONE ACCEPT' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'MASTER SLAVE NONE ACCEPT' \
+ -- "$cur" ) )
fi
;;
ptype)
@@ -353,17 +351,16 @@ _hciattach()
case $args in
1)
COMPREPLY=( $( printf '%s\n' /dev/tty* ) )
- COMPREPLY=( $( compgen -W '${COMPREPLY[@]} \
+ COMPREPLY=( $( compgen -W '${COMPREPLY[@]}
${COMPREPLY[@]#/dev/}' -- "$cur" ) )
;;
2)
- COMPREPLY=( $( compgen -W 'any ericsson digi \
- xircom csr bboxes swave bcsp 0x0105 \
- 0x080a 0x0160 0x0002' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'any ericsson digi xircom csr bboxes
+ swave bcsp 0x0105 0x080a 0x0160 0x0002' -- "$cur" ) )
;;
3)
- COMPREPLY=( $( compgen -W '9600 19200 38400 \
- 57600 115200 230400 460800 921600' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '9600 19200 38400 57600 115200 230400
+ 460800 921600' -- "$cur" ) )
;;
4)
COMPREPLY=( $( compgen -W 'flow noflow' -- "$cur" ) )