fix bash autocompletion

pull/25/head
Vladyslav Burzakovskyy 6 years ago committed by matejcik
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…
Cancel
Save