Updating path


If you are new to Mac OS X, you may need to know how to edit your PATH.

The good news is that this is an easy task on Mac OS X.

Math Works Machine Translation The automated translation of this page is provided by a general purpose third party translator tool.

Math Works does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.

The file allows you to customize the environment your user runs in.

Step 3: Add the following line to the end of the file adding whatever additional directory you want in your path: That example would add ~/.rbenv to the PATH.

The $PATH part is important as it appends the existing PATH to preserve it in the new value.

Step 4: Save the .bash_profile file and Quit (Command + Q) Text Edit. This loads the values immediately without having to reboot.

In your Terminal window, run the following command.

You should now see the values you want in your PATH.[Updated 2/10/2012] The instructions now use the .bash_profile method of editing your PATH.



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>