49968: _adb: also replace model names, since device names aren't sent on wifi listing

master
Mikael Magnusson 2 years ago
parent 4d8f36704e
commit 29f97c1f94

@ -26,6 +26,9 @@
* 49967: Completion/Unix/Command/_adb: _adb: Handle dumpsys
SurfaceFlinger arguments
* 49968: Completion/Unix/Command/_adb: _adb: also replace model
names, since device names aren't sent on wifi listing
2022-04-02 dana <dana@dana.is>
* unposted (see 48073): Completion/Zsh/Command/_fc: Complete

@ -498,6 +498,8 @@ _adb_device_serial() {
for device in $device_desc; do
if [[ -n $devices[(r)${device%:*}:*] ]]; then
devices[(i)${device%:*}:*]=$device
elif [[ -n $devices[(r)*:${device%:*}] ]]; then
devices[(i)*:${device%:*}]=${${devices[(r)*:${device%:*}]}%:*}:${device#*:}
fi
done
_describe -t dev_serial 'available device' devices

Loading…
Cancel
Save