diff options
author | Robby Russell <robby@planetargon.com> | 2014-08-31 11:04:55 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-08-31 11:04:55 -0700 |
commit | c207c839689b49db96ebd60eecdc8026cbb107e5 (patch) | |
tree | 72fbd663945cd89677ce12f5e841d259328f2659 /plugins | |
parent | c07bf981c3fece484d23ba5cb2c42edbb8e02a66 (diff) | |
parent | 8ad9122ba49bb0a41ca7dbad03cf5438477cc283 (diff) | |
download | zsh-c207c839689b49db96ebd60eecdc8026cbb107e5.tar.gz zsh-c207c839689b49db96ebd60eecdc8026cbb107e5.tar.bz2 zsh-c207c839689b49db96ebd60eecdc8026cbb107e5.zip |
Merge pull request #1755 from johnjohndoe/feature/adb-autocompletion
Add autocompletion for adb
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/adb/_adb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/adb/_adb b/plugins/adb/_adb new file mode 100644 index 000000000..4c998172d --- /dev/null +++ b/plugins/adb/_adb @@ -0,0 +1,39 @@ +#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' +'logcat:View device log' +'pull:copy file/dir from device' +'push:copy file/dir to device' +'shell:run remote shell interactively' +'sync:copy host->device only if changed (-l means list but dont copy)' +'uninstall:remove this app package from the device' +'version:show version num' +) + +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 |