git/aika/main
completions/aika.bash
22 lines480 B last change raw · history
# 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