dotfiles/home/.zsh/cmd/adi.sh

15 lines
291 B
Bash
Raw Normal View History

2022-06-04 20:25:45 +00:00
### ADB
# mnemonic [AD]b [I]nstall
# install apk via adb
apk=${1}
if [[ -z $apk ]]; then
2023-01-03 03:48:03 +00:00
apk=$(find . -maxdepth 5 -type f -name '*.apk' ! -iname ".*" | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:install]'")
2022-06-04 20:25:45 +00:00
fi
if [[ $apk ]]; then
echo "Trying $apk"
2023-01-03 03:48:03 +00:00
adb install -g -r "$apk"
2022-06-04 20:25:45 +00:00
fi