aboutsummaryrefslogtreecommitdiffstats
path: root/completions/rsp.bash
blob: 55a25b0035b1f5bdb87592a8495d0c786673a450 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

_rsp() {
    local cur prev words cword
    _init_completion || return

    case $prev in
        rsp)
            COMPREPLY=($(compgen -W "start stop restart play pause resume next previous volume shuffle queue status scan settings" -- "$cur"))
            ;;
        play)
            _filedir
            ;;
        volume)
            COMPREPLY=($(compgen -W "0 10 20 30 40 50 60 70 80 90 100" -- "$cur"))
            ;;
        shuffle)
            COMPREPLY=($(compgen -W "on off album" -- "$cur"))
            ;;
        settings)
            COMPREPLY=($(compgen -W "get set list unset" -- "$cur"))
            ;;
    esac
}

complete -F _rsp rsp