Fixed __fish_adb_get_devices

This commit is contained in:
Afsar Pasha 2021-02-27 16:31:01 +00:00 committed by Fabian Homborg
parent 6b6f8d2295
commit 9909623262

View file

@ -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