aboutsummaryrefslogtreecommitdiffstats
path: root/completions/rsp.bash
diff options
context:
space:
mode:
Diffstat (limited to 'completions/rsp.bash')
-rw-r--r--completions/rsp.bash38
1 files changed, 2 insertions, 36 deletions
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() {
16 ",$1") 16 ",$1")
17 cmd="rsp" 17 cmd="rsp"
18 ;; 18 ;;
19 rsp,completions)
20 cmd="rsp__subcmd__completions"
21 ;;
22 rsp,help) 19 rsp,help)
23 cmd="rsp__subcmd__help" 20 cmd="rsp__subcmd__help"
24 ;; 21 ;;
@@ -70,9 +67,6 @@ _rsp() {
70 rsp,volume) 67 rsp,volume)
71 cmd="rsp__subcmd__volume" 68 cmd="rsp__subcmd__volume"
72 ;; 69 ;;
73 rsp__subcmd__help,completions)
74 cmd="rsp__subcmd__help__subcmd__completions"
75 ;;
76 rsp__subcmd__help,help) 70 rsp__subcmd__help,help)
77 cmd="rsp__subcmd__help__subcmd__help" 71 cmd="rsp__subcmd__help__subcmd__help"
78 ;; 72 ;;
@@ -173,7 +167,7 @@ _rsp() {
173 167
174 case "${cmd}" in 168 case "${cmd}" in
175 rsp) 169 rsp)
176 opts="-h --help start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings completions help" 170 opts="-h --help start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help"
177 if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then 171 if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
178 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) 172 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
179 return 0 173 return 0
@@ -186,22 +180,8 @@ _rsp() {
186 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) 180 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
187 return 0 181 return 0
188 ;; 182 ;;
189 rsp__subcmd__completions)
190 opts="-h --help [SHELL]"
191 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
192 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
193 return 0
194 fi
195 case "${prev}" in
196 *)
197 COMPREPLY=()
198 ;;
199 esac
200 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
201 return 0
202 ;;
203 rsp__subcmd__help) 183 rsp__subcmd__help)
204 opts="start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings completions help" 184 opts="start-daemon stop-daemon restart play pause resume toggle stop next previous volume shuffle queue status scan settings help"
205 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then 185 if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
206 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) 186 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
207 return 0 187 return 0
@@ -214,20 +194,6 @@ _rsp() {
214 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) 194 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
215 return 0 195 return 0
216 ;; 196 ;;
217 rsp__subcmd__help__subcmd__completions)
218 opts=""
219 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
220 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
221 return 0
222 fi
223 case "${prev}" in
224 *)
225 COMPREPLY=()
226 ;;
227 esac
228 COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
229 return 0
230 ;;
231 rsp__subcmd__help__subcmd__help) 197 rsp__subcmd__help__subcmd__help)
232 opts="" 198 opts=""
233 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then 199 if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then