Skip to content

Instantly share code, notes, and snippets.

@saantiaguilera
Created October 20, 2016 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saantiaguilera/5e763eb5e318d13fe60488565ef50118 to your computer and use it in GitHub Desktop.
Save saantiaguilera/5e763eb5e318d13fe60488565ef50118 to your computer and use it in GitHub Desktop.
Easy adb aliases for an easier life
func_adbfilter() {
adb logcat | ggrep `adb shell ps | ggrep $1 | cut -c10-15`
}
alias adbfilter=func_adbfilter
func_adbphonedata() {
adb shell cat /proc/cpuinfo
}
alias adbphonedata=func_adbphonedata
@saantiaguilera
Copy link
Author

In your .bashrc add

if [ -f ~/.adb-aliases ]; then
    . ~/.adb-aliases
fi

in a zshrc add

source ~/.adb-aliases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment