Edit the command line path for an executable on OSX [closed]
- by Stu
Possible Duplicate:
What are PATH and other environment variables, and how can I set or use them?
I have the default package of Ruby installed that shipped with the OS, which is an older version.
I have recently installed MacPorts with the latest Ruby version which is installed in a seperate location:-
/opt/local/bin/
But when I run
which ruby
I get
/usr/bin/ruby
Is there any way to edit the path of the command ruby so it would reference the new installation in the /opt/ directory?
Thanks in advance.