all repos — dotfiles @ a41150052c09b9f0d94d013c1b086d8d4e8f4039

linux dotfiles

add phone script
Prithu Goswami prithugoswami524@gmail.com
Wed, 06 Jan 2021 17:29:20 +0530
commit

a41150052c09b9f0d94d013c1b086d8d4e8f4039

parent

1fc82ba9aa5541347d2d6eb577186d3050850fce

1 files changed, 17 insertions(+), 0 deletions(-)

jump to
A bin/scripts/phone

@@ -0,0 +1,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 +