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