Added tab completions script.
This commit is contained in:
parent
925ec8d349
commit
806156af64
10
tab_completions.sh
Normal file
10
tab_completions.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
_broker () {
|
||||
local cur=${COMP_WORDS[COMP_CWORD]}
|
||||
reply_list=$(grep "()" broker.sh|cut -d' ' -f1|grep -v "()")
|
||||
COMPREPLY=( $( compgen -W "$reply_list" -- $cur ) )
|
||||
return 0
|
||||
}
|
||||
|
||||
complete -F _broker -o filenames ./broker.sh
|
Loading…
Reference in New Issue
Block a user