Find the Android SDK path, here is a link to help you find it.
For Mac is some like: /Users/<yout-user-name>/Library/Android/sdk"
Open the .rc file in your favorite editor:
# if you use ZSH
nano ~/.zshrc
# if you use BASH
nano ~/.bashrcAdd this line at the final of the file(your Android SDK path with a /emulator:$PATH at the end):
export PATH="/Users/<your-user-name>/Library/Android/sdk/emulator:$PATH"Save the file and go back to the terminal and reload the new configuration:
source ~/.zshrc
#or
source ~/.bashrcNow you can get it running from any location:
emulator -avd EmulatorNameTo see all available emulators just run:
emulator -list-avds.
Like this? Check my blog! Follow me on Twitter