1

Possible Duplicate:
How do I set PATH and other environment variables?

I recently installed git 1.7.4.4 via the installer from here http://code.google.com/p/git-osx-installer/ (not via homebrew or stuff...) and found that it added itself to my $PATH.

I wonder, where did it do that? I checked my ~/.bashrc and also /etc/bashrc and /etc/profile, nowhere is a line like PATH=$PATH:/usr/local/git/bin

Out of curiosity, where did the git-installer put the change to the path??

2 Answers2

3

Have a look in /etc/paths.d/. If there is a file called git, this is how your $PATH is manipulated.

Since Leopard, there is an alternative method for manipulating the PATH by adding text files to /etc/paths.d/ containing lines that will be appended to the PATH variable. Kind of simple, but it does cause issues if you aren't aware of it.

EDIT: There is also a corresponding /etc/manpaths.d/

Rob Cowie
  • 206
1

Perhaps it's located in /etc/paths??

cat /etc/paths