all repos — dotfiles @ 0c629a2b5b6a9c3e6d5b26bf9e792a80d74f40d1

linux dotfiles

bin/scripts/phone (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
#!/bin/sh

options="pull\npush\nscreen\ndevices"

select=$(echo -e $options | fzf)

case $select in 
    "pull")
        adb shell find sdcard/ | fzf | xargs -i adb pull "{}";;
    "push")
        src="$(fzf -i)"
        adb shell find sdcard/ -type d | fzf | xargs -i adb push "$src" {}
        ;;
    "screen")
        scrcpy;;
    "devices")
        adb devices;;
esac