From 99096232623d95616fbdf3f1a79480ff0d562cf3 Mon Sep 17 00:00:00 2001 From: Afsar Pasha <25363752+Afsar-Pasha@users.noreply.github.com> Date: Sat, 27 Feb 2021 16:31:01 +0000 Subject: [PATCH] Fixed __fish_adb_get_devices --- share/completions/adb.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/adb.fish b/share/completions/adb.fish index edb93c3b7..584dd819c 100644 --- a/share/completions/adb.fish +++ b/share/completions/adb.fish @@ -14,7 +14,7 @@ function __fish_adb_get_devices -d 'Run adb devices and parse output' set -l procs (ps -Ao comm= | string match 'adb') # Don't run adb devices unless the server is already started - it takes a while to init if set -q procs[1] - adb devices -l | string replace -rf '(\S+) +.' '$1'\t | string replace -r \t'.*model:(\S+).*' \t'$1' + adb devices -l | string replace -rf '(\S+).*model:(\S+).*' '$1'\t'$2' end end