This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # NOTE: Add this inside your .zshrc file | |
| # Author: Mateo Fumis | |
| proxyadb() { | |
| if [[ "$1" == "--connect" ]]; then | |
| if [[ -n "$2" && -n "$3" ]]; then | |
| adb shell settings put global http_proxy "$2:$3" | |
| echo "Proxy set to $2:$3" | |
| else | |
| echo "Please provide an IP address and a port." | |
| fi |