dotfiles/home/.zsh/cmd/adi.sh
2022-06-04 23:25:45 +03:00

15 lines
308 B
Bash
Executable File

### ADB
# mnemonic [AD]b [I]nstall
# install apk via adb
apk=${1}
if [[ -z $apk ]]; then
apk=$(find . -maxdepth 5 -type f -name '*.apk' ! -iname ".*" | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[adb:install]'" | awk '{print $1}')
fi
if [[ $apk ]]; then
echo "Trying $apk"
adb install -g -r $apk
fi