<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Mac OS X Tip: Setting PATH environment variables</title>
	<link>http://www.sweeting.org/mark/blog/2008/05/26/mac-os-x-tip-setting-path-environment-variables</link>
	<description>The world according to marky moo</description>
	<pubDate>Thu, 20 Nov 2008 10:40:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Felipe</title>
		<link>http://www.sweeting.org/mark/blog/2008/05/26/mac-os-x-tip-setting-path-environment-variables#comment-144898</link>
		<author>Felipe</author>
		<pubDate>Thu, 31 Jul 2008 05:34:47 +0000</pubDate>
		<guid>http://www.sweeting.org/mark/blog/2008/05/26/mac-os-x-tip-setting-path-environment-variables#comment-144898</guid>
		<description>Hey there Mark.

I just read this post, great info. But after digging a little I found out that you can use another method to do what you're saying. You just have to create a file inside /etc/paths.d ; for instance if I'd like to append the mysql directory to the PATH I would do this:

1) Create the file /etc/paths.d/mysql like this:
   sudo touch /etc/paths.d/mysql
2) Edit the file:
   sudo vim /etc/paths.d/mysql
3) Put the path inside the file:
   /usr/local/mysql/bin

I posted three steps so everyone knows what they're doing, but you could do it all by just creating the file and filling it with the path needed in PATH.

I think this method works better because it is more ordered at the end and you would have a file for each path you want to create for every program that needs it.

Hope this helps.
Cheers. Felipe.</description>
		<content:encoded><![CDATA[<p>Hey there Mark.</p>
<p>I just read this post, great info. But after digging a little I found out that you can use another method to do what you&#8217;re saying. You just have to create a file inside /etc/paths.d ; for instance if I&#8217;d like to append the mysql directory to the PATH I would do this:</p>
<p>1) Create the file /etc/paths.d/mysql like this:<br />
   sudo touch /etc/paths.d/mysql<br />
2) Edit the file:<br />
   sudo vim /etc/paths.d/mysql<br />
3) Put the path inside the file:<br />
   /usr/local/mysql/bin</p>
<p>I posted three steps so everyone knows what they&#8217;re doing, but you could do it all by just creating the file and filling it with the path needed in PATH.</p>
<p>I think this method works better because it is more ordered at the end and you would have a file for each path you want to create for every program that needs it.</p>
<p>Hope this helps.<br />
Cheers. Felipe.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
