0

Unlike Windows & Git Bash: Bash PATH to read Windows %PATH% system variable, I am trying to avoid Git Bash from adding many entries from windows %PATH%.

The reason is my Windows %PATH% has many software installation directories added by our system admin. I do not want to remove them from Windows %PATH%, or some preinstalled software may not function properly. Neither do I want them in Git Bash because I do not need those stuffs to use Git.

I also learned from web that there is usually a "MSYS2_PATH_TYPE" I can set in msys2.ini, however, this file is not found in Git Bash installation directory. Interestingly, /etc/profile seems to check this variable then determine which paths to add.

bfrguci
  • 565

0 Answers0