1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-25 15:58:08 +00:00

fix bash autocompletion

This commit is contained in:
Vladyslav Burzakovskyy 2018-10-25 02:24:13 +02:00 committed by matejcik
parent e9b540e6b6
commit 7bd3cd6b13

View File

@ -5,7 +5,7 @@ _trezorctl()
cur="${COMP_WORDS[COMP_CWORD]}" cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}" 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})) COMPREPLY=($(compgen -W "${cmds}" -- ${cur}))
return 0 return 0