1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

Update adb (#6472)

This commit is contained in:
kg 2017-12-08 07:52:52 +08:00 committed by Robby Russell
parent 2af2d1aa31
commit e999f104e7

View file

@ -48,8 +48,8 @@ _arguments \
case "$state" in
specify_device)
_values 'devices' $(adb devices|awk 'NR>1&& $1 ~ /^[a-zA-Z0-9].*$/ \
{printf "%s[Device_%d:%s] ",$1,++i,$2 }')
_values 'devices' $(adb devices -l|awk 'NR>1&& $1 ~ /^[a-zA-Z0-9].*$/ \
{printf "%s[%s] ",$1,$6 }')
return
;;
esac