You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
329 B
Bash
15 lines
329 B
Bash
8 years ago
|
_trezorctl()
|
||
|
{
|
||
|
local cur prev cmds base
|
||
|
COMPREPLY=()
|
||
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||
|
|
||
|
cmds=$(trezorctl --help | grep -A 1 'Available commands:' | tail -n 1 | tr '{},' ' ')
|
||
|
|
||
|
COMPREPLY=($(compgen -W "${cmds}" -- ${cur}))
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
complete -F _trezorctl trezorctl
|