Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
c99844d8
Commit
c99844d8
authored
Jun 17, 2018
by
kang
Committed by
Marc Cornellà
Jun 17, 2018
Browse files
adb: fix `adb -s` device completion (#6489)
parent
f258bcba
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/adb/_adb
View file @
c99844d8
...
...
@@ -48,8 +48,8 @@ _arguments \
case "$state" in
specify_device)
_values 'devices' $(adb devices -l|awk 'NR>1&& $1
~ /^[a-zA-Z0-9].*$/
\
{printf "%s[%s] ",$1,
$6 }')
_values
-C
'devices'
${
$(adb devices -l|awk 'NR>1&& $1 \
{
sub(/ +/," ",$0);gsub(":","\\:",$1);
printf "%s[%s] ",$1,
$NF}'):-""}
return
;;
esac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment