Friday, June 1, 2012

Adding Directories to PATH on a Mac

If using Bash shell, this is how to add directories to the PATH environment variable on a Mac (Mac OS 10.5).

Create a .bash_profile file and place it in the home directory for your user account.

The file contains only 1 line:
export PATH="$PATH:~/bin/:/Applications/android-sdk-mac/tools/"

This adds 2 directories:
  1. My personal "bin" directory for my own scripts
  2. And the executable files for the Android SDK

No comments:

Post a Comment