mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Fixed __fish_adb_get_devices
This commit is contained in:
parent
6b6f8d2295
commit
9909623262
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue