• entries
    98
  • comments
    26
  • views
    77,808

change PATH in OS X

Sign in to follow this  
Followers 0
xKLAATUx

197 views

   27 members have voted

  1. 1. where do ya fit in?

    • White hat
      2
    • Black Hat
      1
    • Gray Hat
      11
    • I don't wear any fukking hats.
      10

Please sign in or register to vote in this poll.

to change PATH in OS X:

$ cd ~ && vim .profile

In vim (or you can use nano if you want), add to the .profile document:

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

...or whatever directories you are trying to add to your path. (the /opt/local/bin stuff is helpful becuase if you're running MacPorts like I am, you can just type in the name of the ported app you are trying to launch and it knows where to look.)That's it. You'll have to close your current terminal window in order for this to kick in.


0
Sign in to follow this  
Followers 0


0 Comments


There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now