Tilley1234 / git-osx-installer

Automatically exported from code.google.com/p/git-osx-installer
1 stars 0 forks source link

Suggestion: use /etc/paths.d and /etc/manpaths.d #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not *positive* that this is a better way, since I'm new to OS X, but I
suspect it is:

Rather than editing ~/.bash_profile, you could add a "git" entry to
/etc/paths.d and /etc/manpaths.d.  That will work with any shell, not just
bash (assuming that your equivalent to .profile still sources /etc/profile
or calls /usr/libexec/path_helper directly).

According to the following post, environment.plist is deprecated:

http://littlesquare.com/2008/01/24/upgraded-to-leopard-making-use-of-etcpathsd-a
nd-path_helper/

However, it also sounds like some upgrade paths to Leopard may not update
/etc/profile corectly, so YMMV.  I'm on a clean install here and can't be
of use.

Original issue reported on code.google.com by j...@jay.fm on 21 May 2008 at 4:45

GoogleCodeExporter commented 9 years ago
Incorporated :)  great tip!

Tim

Original comment by timchar...@gmail.com on 24 Jun 2008 at 2:01