Mac OSX Macports profile
November 14, 2009 § Leave a comment
MacPorts is required to store environmental variables in the shell. Usually .bash_profile or .bash_login will replace .profile in home directory ~. You can consider remove .profile or add content from .profile.
Again I would point .bash_profile to .bashrc as a single source for better MacPorts management.
You can view all the environment variables in terminal:
MacPorts paths are appended at the front of
PATH so the MacPorts libraries will take precedence over vendor-supplied libraries for ported software at runtime.
To add directory /data/script to the beginning of the $PATH environment variable
To add that directory to the end of the path:
Note: Start a new terminal every time you update any profile file.