Commit c99844d8 authored by kang's avatar kang Committed by Marc Cornellà
Browse files

adb: fix `adb -s` device completion (#6489)

parent f258bcba
...@@ -48,8 +48,8 @@ _arguments \ ...@@ -48,8 +48,8 @@ _arguments \
case "$state" in case "$state" in
specify_device) specify_device)
_values 'devices' $(adb devices -l|awk 'NR>1&& $1 ~ /^[a-zA-Z0-9].*$/ \ _values -C 'devices' ${$(adb devices -l|awk 'NR>1&& $1 \
{printf "%s[%s] ",$1,$6 }') {sub(/ +/," ",$0);gsub(":","\\:",$1); printf "%s[%s] ",$1, $NF}'):-""}
return return
;; ;;
esac esac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment