This file contains 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
# Put the following lines within your .bashrc file. | |
# Get default gateway's IP address | |
alias defaultip="ip r | grep default | grep -o -E "[0-9]+.[0-9]+.[0-9]+.[0-9]+"" | |
# ADB shortcut | |
# Note: Linux users shall replace "adb.exe" with just adb. | |
# I'm using WSL and hence I used adb.exe to access the Windows version | |
alias connect="adb.exe connect `defaultip`" |