From 43562db0804338f2d55dff13439f1165f8dd9d3f Mon Sep 17 00:00:00 2001 From: salmonik Date: Sat, 16 May 2026 12:47:43 +0200 Subject: first public release. --- completions/rsp.bash | 38 ++------------------------------------ 1 file changed, 2 insertions(+), 36 deletions(-) (limited to 'completions/rsp.bash') diff --git a/completions/rsp.bash b/completions/rsp.bash index 1812802..c4e295f 100644 --- a/completions/rsp.bash +++ b/completions/rsp.bash @@ -16,9 +16,6 @@ _rsp() { ",$1") cmd="rsp" ;; - rsp,completions) - cmd="rsp__subcmd__completions" - ;; rsp,help) cmd="rsp__subcmd__help" ;; @@ -70,9 +67,6 @@ _rsp() { rsp,volume) cmd="rsp__subcmd__volume" ;; - rsp__subcmd__help,completions) - cmd="rsp__subcmd__help__subcmd__completions" - ;; rsp__subcmd__help,help) cmd="rsp__subcmd__help__subcmd__help" ;; @@ -173,7 +167,7 @@ _rsp() { case "${cmd}" in rsp) - opts="-h --help start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings completions help" + opts="-h --help start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -186,22 +180,8 @@ _rsp() { COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; - rsp__subcmd__completions) - opts="-h --help [SHELL]" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; rsp__subcmd__help) - opts="start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings completions help" + opts="start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -214,20 +194,6 @@ _rsp() { COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; - rsp__subcmd__help__subcmd__completions) - opts="" - if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - *) - COMPREPLY=() - ;; - esac - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - ;; rsp__subcmd__help__subcmd__help) opts="" if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then -- cgit v1.2.3