Blame view
plugins/adb/_adb
1.58 KB
|
093a6c34b
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#compdef adb #autoload # in order to make this work, you will need to have the android adb tools # adb zsh completion, based on homebrew completion local -a _1st_arguments _1st_arguments=( 'bugreport:return all information from the device that should be included in a bug report.' 'connect:connect to a device via TCP/IP Port 5555 is default.' 'devices:list all connected devices' 'disconnect:disconnect from a TCP/IP device. Port 5555 is default.' 'emu:run emulator console command' 'forward:forward socket connections' 'help:show the help message' 'install:push this package file to the device and install it' 'jdwp:list PIDs of processes hosting a JDWP transport' |
|
238d8e65a
|
19 20 |
'kill-server:kill the server if it is running' 'logcat:view device log' |
|
093a6c34b
|
21 22 |
'pull:copy file/dir from device' 'push:copy file/dir to device' |
|
238d8e65a
|
23 24 25 26 27 |
'reboot:reboots the device, optionally into the bootloader or recovery program' 'reboot-bootloader:reboots the device into the bootloader' 'remount:remounts the partitions on the device read-write' 'root:restarts the adbd daemon with root permissions' 'sideload:push a ZIP to device and install it' |
|
093a6c34b
|
28 29 |
'shell:run remote shell interactively' 'sync:copy host->device only if changed (-l means list but dont copy)' |
|
238d8e65a
|
30 31 |
'start-server:ensure that there is a server running' 'tcpip:restart host adb in tcpip mode' |
|
093a6c34b
|
32 33 |
'uninstall:remove this app package from the device' 'version:show version num' |
|
238d8e65a
|
34 |
'wait-for-device:block until device is online' |
|
093a6c34b
|
35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
) local expl local -a pkgs installed_pkgs _arguments \ '*:: :->subcmds' && return 0 if (( CURRENT == 1 )); then _describe -t commands "adb subcommand" _1st_arguments return fi _files |