On Windows, the PATH
is separated into 2 parts, the System PATH
& the User PATH
. They can both be displayed and changed in the Control Panel
(though not very well).
While running msysGit
or Git for Windows
, a 3rd PATH
is created and put before the other 2, meaning programs will look in this 3rd PATH
's folders for a command before the User or System PATH
folders. I think msysGit
created it because I chose the "Run Git and included Unix tools from the Windows Command Prompt
" option during installation (correct me if I'm wrong):
Where does
msysGit
/Git for Windows
store this PATH
, and how can I change it?
This part of the PATH
is in /etc/profile
(with /
being wherever msysGit
or Git for Windows
is stored). This is similar to how Linux & UNIX do it, with /etc/profile
being one of the places Bash
looks for start-up scripts.