aboutsummaryrefslogtreecommitdiffstats
path: root/completions/rsp.bash
blob: b6259279349aa7dcf0c4ba27030a122ae59eba5e (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 toggle 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