Skip to content

Commit

Permalink
Add completion for adb disconnect command
Browse files Browse the repository at this point in the history
  • Loading branch information
CODeRUS committed Jul 22, 2016
1 parent 3b0fabe commit 6c0f53b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android
Expand Up @@ -171,6 +171,12 @@ function _adb()
COMPREPLY=( $(compgen -W "${cmds}" -- ${cur}) )
return 0
;;
disconnect)
# Use 'adb devices' to list serial numbers.
COMPREPLY=( $(compgen -W "$(adb devices |
awk '/(device|recovery|sideload|offline|unauthorized)$/{print $1}')" -- ${cur} ) )
return 0
;;
install)
case "${cur}" in
-*)
Expand Down

0 comments on commit 6c0f53b

Please sign in to comment.