Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@saantiaguilera saantiaguilera commented Oct 20, 2016

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