$cd ~
$open -a TextEdit.app .bash_profile
This will open a text editor
there you can edit your environment variable
Ex: export JAVA_HOME=/etc/java/java_path
Save the file
$source .bash_profile
$open -a TextEdit.app .bash_profile
This will open a text editor
there you can edit your environment variable
Ex: export JAVA_HOME=/etc/java/java_path
Save the file
$source .bash_profile