add path in Mac $PATH

open terminal

$cd ~

$open -a TextEdit .profile

In TextEdit

# MacPorts Installer addition on 2009-10-28_at_16:24:44: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.

Add new path in export PATH like this

# MacPorts Installer addition on 2009-10-28_at_16:24:44: adding an appropriate PATH variable for use with MacPorts.
export PATH=/Applications/MAMP/Library/bin/:/sw/bin:/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>