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:-
But when I run
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.