last changed by Faen · v1.0.0: refactored and hardened existing code, added python support, added man pages and shell completions, added makefile
| # Bash completion for Aika
_aika_completions() {
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case "${COMP_WORDS[0]}" in
arvelie)
opts="-h --help -v --version"
;;
neralie)
opts="-h --help -v --version -c --count"
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
}
complete -F _aika_completions arvelie neralie
|