Git Bash的PATH开头在哪里? [英] Where is the beginning of the PATH in Git Bash?
问题描述
在Windows上, PATH
分为两部分,系统 PATH
&用户 PATH
。它们都可以在控制面板
中显示和更改(尽管不太好)。
运行 msysGit
或 Git for Windows
,创建并放置第3个 PATH
在其他2之前,意思是程序将在用户或系统之前的第3个 PATH
的文件夹中查找命令 PATH
文件夹。我认为 msysGit
创建它,因为我选择了运行Git并从 Windows命令提示符
选项中包含Unix工具安装(如果我错了,请更正我):
msysGit
/ Git for Windows
存储此 PATH
,如何更改?
这部分 PATH
在 / etc / profile
(含 /
在哪里 msysGit
或 Git for Windows
存储)。这与Linux& UNIX这样做,其中 / etc / profile
是其中一个地方 Bash
寻找启动脚本。 p>
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.
这篇关于Git Bash的PATH开头在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!