permanent daylight
the obsessions of Adam Findley

Leopard + Search Paths = paths.d

Posted by adam on Mon Sep 8 2008 11:44 p.m.

I've been messing around with MySQL, git, macports and a couple other things that place files where they weren't part of my search path (aka as the $PATH variable). I've been adding stuff to /etc/profile or to my own .bash_profile to get around this problem, but it never quite felt right. With Leopard (Mac OS X 10.5), all you have to do is add a file in the /etc/paths.d directory with each path you want on a separate line. Ah, now that feels better.

Here's an example:

$ pwd
/etc/paths.d
$ cat git
/usr/local/git/bin

This is all due to the path_helper program in your /etc/profile.

Comments

rhiajean at Fri Sep 26 2008 1:13 p.m.

Adam, I revised your blog so that humans can understand what you are really trying to say:

http://rhiasrubbish.blogspot.com/2008/09/blog-revised.html

Post your Comment

*

*

*

HTML is not allowed, but markdown is. URLs are automatically converted to links, but not followed.