all repos — dotfiles @ c4f7807265dc2f6216f49fb83e053b0887f7ca27

linux dotfiles

bin/scripts/phone

#!/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