mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
add '-s' attribute
Very ofter a want use '-s' for run command for the specific device. But in the previous version when I input '-s' I can not show hint about command. (I fixed this)
This commit is contained in:
parent
0b4bba4ca2
commit
6273d430f2
1 changed files with 17 additions and 1 deletions
|
|
@ -34,13 +34,29 @@ _1st_arguments=(
|
|||
'wait-for-device:block until device is online'
|
||||
)
|
||||
|
||||
local -a serial
|
||||
serial=(
|
||||
'-s:run command only for the selected device by device code or ip:port from adb devices'
|
||||
)
|
||||
|
||||
local expl
|
||||
local -a pkgs installed_pkgs
|
||||
|
||||
_arguments \
|
||||
'*:: :->subcmds' && return 0
|
||||
|
||||
if (( CURRENT == 1 )); then
|
||||
if ((CURRENT == 1)) then
|
||||
_describe -t commands "adb subcommand" _1st_arguments
|
||||
_describe -t commands "adb subcommand" serial
|
||||
return
|
||||
fi
|
||||
|
||||
if ((CURRENT == 2)) then
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
if ((CURRENT == 3)) then
|
||||
_describe -t commands "adb subcommand" _1st_arguments
|
||||
return
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue