Skip to content

Commit

Permalink
Some tsc scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
patbonecrusher committed Feb 14, 2020
1 parent 3cac6f1 commit b64c6a0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dotfiles/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ normalize_path

test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" || true


# tabtab source for electron-forge package
# uninstall by removing these lines or running `tabtab uninstall electron-forge`
[[ -f /home/pat/.asdf/installs/nodejs/12.8.0/.npm/lib/node_modules/electron-forge/node_modules/tabtab/.completions/electron-forge.zsh ]] && . /home/pat/.asdf/installs/nodejs/12.8.0/.npm/lib/node_modules/electron-forge/node_modules/tabtab/.completions/electron-forge.zsh
17 changes: 16 additions & 1 deletion scripts/source/tsc.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,25 @@ function extract_release {
cd ~/Download

rm -rf delivery
tar xvzf phoenix_${1}_userdebug_img.tar.gz
tar xvzf ${1}.tar.gz
mv delivery ${1}
}

function install_release {
~/Projects/tsc/scripts/flash-release.sh ~/Downloads/${1}
}

alias adbrr='adb wait-for-device && adb root && sleep 0.1 && adb wait-for-device && adb remount'


function pull_logs {
mkdir /tmp/$1
adb root
adb remount
cd /tmp/$1
adb pull /data/misc/logger
cd /tmp
t=$1_logs_`date +%s`
tar cvzf $t.tgz $1
mv $t.tgz ~/Downloads
}

0 comments on commit b64c6a0

Please sign in to comment.