all repos — dotfiles @ a41150052c09b9f0d94d013c1b086d8d4e8f4039

linux dotfiles

bin/scripts/phone

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

options="pull\npush\nscreen"

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;;
esac