Sheehan Alam Sheehan Alam - 1 year ago 79
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
Answer Source

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

export CLASSPATH="/Users/syalam/Library/android-sdk-mac_86/platform-tools:$CLASSPATH"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download