mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
fix bash autocompletion
This commit is contained in:
parent
e9b540e6b6
commit
7bd3cd6b13
@ -5,7 +5,7 @@ _trezorctl()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
|
||||
cmds=$(trezorctl --help | grep -A 1 'Available commands:' | tail -n 1 | tr '{},' ' ')
|
||||
cmds=$(trezorctl --help | grep '^ [a-z]' | awk '{ print $1 }')
|
||||
|
||||
COMPREPLY=($(compgen -W "${cmds}" -- ${cur}))
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user