Sheehan Alam Sheehan Alam - 10 months ago 42
Bash Question

How can I permanently add a class path to my Mac terminal?

I want to set my path permanently for the following directory:


Not sure how to do it from the terminal. I tried:

export PATH=$PATH:/Users/syalam/Library/android-sdk-mac_86/platform-tools

but it only works temporarily. After I close my shell it no longer exists.

fge fge

Just add this entry to your CLASSPATH environment variable in your .bashrc:

export CLASSPATH="/Users/syalam/Library/android-sdk-mac_86/platform-tools:$CLASSPATH"