Actually it's for bash setups.
Depending on the type of working environment, in Mac, there are two different ways you need to complete.
~/.profile -- personalize personal initialization such as classpath. Within this file you have
PATH=$PATH:...:...
export PATH
Ps. :... is additional path you put into PATH
~/.bashrc -- personalize personal bash option such as defining alias ls='ls -G'
2) work by using GUI too:
In this case, you need to set up normal path in .profile or .bashrc and also in
/.MacOSX/environment.plist
2.1 create .MacOSX folder
$mkdir .MacOSX
$cd .MacOSX/
2.2 create 'environment.plist' file
$touch environment.plist
$open environment.plist
A window of this file will pop up to you
Then, specify 'PATH' as Key and the value of PATH which is already defined in .profile into Value column.
No comments:
Post a Comment