dotfiles/home/.zsh/cmd/adpo.sh
2023-01-03 06:48:03 +03:00

15 lines
352 B
Bash
Executable File

### ADB
# mnemonic [AD]b [P]ush [O]BB
# pushes obb directory via adb
obbdir=${1}
if [[ -z $obbdir ]]; then
obbdir=$(find . -maxdepth 5 -name '*.obb' ! -iname ".*" -exec dirname {} \; | sort -u | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:push]'")
fi
if [[ $obbdir ]]; then
echo "Trying $obbdir"
adb push "$obbdir" /sdcard/Android/obb/
fi