mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Generated bash completion at configure time
This commit is contained in:
parent
f62ff771b8
commit
0f02e6e551
3 changed files with 29 additions and 52 deletions
|
|
@ -24,37 +24,7 @@ _tio()
|
|||
# Complete the arguments to the options.
|
||||
case "${prev}" in
|
||||
-b | --baudrate)
|
||||
local baudrates="0 \
|
||||
50 \
|
||||
75 \
|
||||
110 \
|
||||
134 \
|
||||
150 \
|
||||
200 \
|
||||
300 \
|
||||
600 \
|
||||
1200 \
|
||||
1800 \
|
||||
2400 \
|
||||
4800 \
|
||||
9600 \
|
||||
19200 \
|
||||
38400 \
|
||||
57600 \
|
||||
115200 \
|
||||
230400 \
|
||||
460800 \
|
||||
500000 \
|
||||
576000 \
|
||||
921600 \
|
||||
1000000 \
|
||||
1152000 \
|
||||
1500000 \
|
||||
2000000 \
|
||||
2500000 \
|
||||
3000000 \
|
||||
3500000 \
|
||||
4000000"
|
||||
local baudrates="@BAUDRATES@"
|
||||
COMPREPLY=( $(compgen -W "$baudrates" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue