Lines Matching refs:cur

27     local where i cur serial
33 cur="${COMP_WORDS[i]}"
34 case "${cur}" in
47 serial=${cur}
65 COMPREPLY=( $(compgen -W "$OPTIONS $COMMAND" -- "$cur") )
69 COMPREPLY=( $(compgen -W "${devices}" -- ${cur}) )
73 COMPREPLY=( $(compgen -W "$COMMAND" -- "$cur") )
76 case "${cur}" in
110 local serial i cur where
117 cur="${COMP_WORDS[i]}"
118 case "${cur}" in
129 cur="${COMP_WORDS[COMP_CWORD]}"
131 COMPREPLY=( $(compgen -W "-d -l -r -s" -- "${cur}") )
135 _adb_util_complete_local_file "${cur}" '!*.apk'
139 local serial i cur
144 cur="${COMP_WORDS[COMP_CWORD]}"
146 _adb_util_complete_local_file "${cur}" '!*.zip'
150 local serial IFS=$'\n' i cur
155 cur="${COMP_WORDS[COMP_CWORD]}"
158 _adb_util_complete_local_file "${cur}"
160 if [ "${cur}" == "" ]; then
161 cur="/"
163 _adb_util_list_files $serial "${cur}"
168 local serial IFS=$'\n' i cur
173 cur="${COMP_WORDS[COMP_CWORD]}"
176 if [ "${cur}" == "" ]; then
177 cur="/"
179 _adb_util_list_files $serial "${cur}"
181 _adb_util_complete_local_file "${cur}"
186 local serial IFS=$'\n' i cur
192 cur="${COMP_WORDS[i]}"
197 if [[ $i -eq $COMP_CWORD && ${cur:0:1} != "/" ]]; then
205 COMPREPLY=( $(compgen -W "$COMMAND" -- "$cur") )
210 case "$cur" in
227 _adb_util_list_files $serial "$cur"
238 local serial i cur
252 cur="${COMP_WORDS[COMP_CWORD]}"
256 COMPREPLY=( $(compgen -W "$candidates" -- "$cur") )
265 local serial i cur
274 cur="${COMP_WORDS[COMP_CWORD]}"
276 COMPREPLY=( $(compgen -W "$candidates" -- "$cur") )
286 local serial i cur
295 cur="${COMP_WORDS[COMP_CWORD]}"
307 COMPREPLY=( $(compgen -W "$candidates" -- "$cur") )
312 cur="${COMP_WORDS[COMP_CWORD]}"
314 COMPREPLY=( $(compgen -W "$candidates" -- "$cur") )
323 local serial i where cur packages
333 cur="${COMP_WORDS[i]}"
334 case "${cur}" in
345 cur="${COMP_WORDS[COMP_CWORD]}"
347 COMPREPLY=( $(compgen -W "-k" -- "${cur}") )
359 COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -W "${packages}" -- "${cur}") )
363 local serial i cur file options
375 cur="${COMP_WORDS[i]}"
376 case "${cur}" in
395 COMPREPLY=( $(compgen -W "$options" -- "$cur") )
457 COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -f -- "${cur}") )
460 COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -f -X "${xspec}" -- "${cur}") )
465 dirs=( $(compgen -d -- "${cur}" ) )
468 files=( ${COMPREPLY[@]:-} $(compgen -f -- "${cur}") )
470 files=( ${COMPREPLY[@]:-} $(compgen -f -X "${xspec}" -- "${cur}") )