mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-18 00:10:14 +00:00
Merge pull request #298 from vincentbernat/fix/adb-completion
Small fixes for adb completion
This commit is contained in:
@@ -71,7 +71,7 @@ _adb() {
|
|||||||
;;
|
;;
|
||||||
(push)
|
(push)
|
||||||
_arguments \
|
_arguments \
|
||||||
'1:local directory:_files -/' \
|
'1:files:_files' \
|
||||||
'2: :_adb_remote_files -/' \
|
'2: :_adb_remote_files -/' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
@@ -83,7 +83,7 @@ _adb() {
|
|||||||
;;
|
;;
|
||||||
(sideload)
|
(sideload)
|
||||||
_arguments \
|
_arguments \
|
||||||
'1:local directory:_files -/' \
|
'1:archive:_files -g "*.zip(-.)"' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
(sync)
|
(sync)
|
||||||
@@ -199,6 +199,7 @@ _adb_device_cmds() {
|
|||||||
local commands; commands=(
|
local commands; commands=(
|
||||||
'push:copy file/dir to device'
|
'push:copy file/dir to device'
|
||||||
'pull:copy file/dir from device'
|
'pull:copy file/dir from device'
|
||||||
|
'sideload:push an update using sideload'
|
||||||
'sync:copy host->device only if changed'
|
'sync:copy host->device only if changed'
|
||||||
'shell:run remote shell interactively or command'
|
'shell:run remote shell interactively or command'
|
||||||
'emu:run emulator console command'
|
'emu:run emulator console command'
|
||||||
|
|||||||
Reference in New Issue
Block a user