Updating path in Mac OSX

I was playing around with MongoDB and node ..needed to add PATH to get mongo commands from anywhere in the shell.

Super easy once you know it.

Open shell and type:

open .profile ( this will open the shell with textmate )


and then update the path :


export PATH=/opt/local/bin:/opt/local/sbin:$PATH

after modification:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH export PATH=/Developer/mongodb-osx-x86_64-2.4.6/bin:$PATH

Restart shell and it should work.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s