Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH 8/8: _adb: also replace model names, since device names aren't sent on wifi listing
- X-seq: zsh-workers 49968
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH 8/8: _adb: also replace model names, since device names aren't sent on wifi listing
- Date: Sun, 3 Apr 2022 17:50:19 +0200
- Archived-at: <https://zsh.org/workers/49968>
- In-reply-to: <20220403155019.24197-1-mikachu@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20220403155019.24197-1-mikachu@gmail.com>
---
Completion/Unix/Command/_adb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Completion/Unix/Command/_adb b/Completion/Unix/Command/_adb
index 5e7fbf8d0f..8a071fa8ee 100644
--- a/Completion/Unix/Command/_adb
+++ b/Completion/Unix/Command/_adb
@@ -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
--
2.15.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author