15 lines
401 B
Bash
15 lines
401 B
Bash
# Bash autocomplete script for yerbacon
|
|
|
|
_ybconAutoComplete() {
|
|
local current previous options
|
|
COMPREPLY=()
|
|
current="${COMP_WORDS[COMP_CWORD]}"
|
|
previous="${COMP_WORDS[COMP_CWORD-1]}"
|
|
options='-h -p --help --version --printresult'
|
|
if [[ "${current}" == -* ]]; then
|
|
COMPREPLY=("$(compgen -W "$options" -- "$current")")
|
|
return 0
|
|
fi
|
|
}
|
|
|
|
complete -o nospace -F _ybconAutoComplete ybcon |