Reputation: 10477
I've been using msysgit for quite a while for Git on Windows, but I'm now trying to set up MinGW for the first time. I installed MSYS with mingw-get
since it has some utils not packaged with msysgit (make
, xz
, etc.).
I've some across some threads for running Git in the MSYS shell, but I'd prefer to use the msysgit shell instead since it maps the home directory to my Windows one and shows Git information on the prompt. To access MinGW and MSYS programs from my msysgit shell, I added the following to .bashrc
:
export PATH=$PATH:/c/MinGW/bin/:/c/MinGW/msys/1.0/bin/
However, running any of the MSYS utils causes the prompt to hang, and ending them with Ctrl-C crashes the util, bringing up the "x has stopped working dialog". If I try to run the utils in the MSYS shell or cmd.exe
, they work fine.
Is there some configuration I have to change with msysigit? What could be going wrong?
Upvotes: 3
Views: 1291
Reputation: 33193
I suggest you just add the "Program Files (x86)\Git\cmd" directory to the path of your msys shell and use it like you would for just the Windows cmd prompt. This adds the git wrapper executable to the path so git can adjust its environment as it runs and avoids interfering with your other msys environment. Adding just the cmd subdirectory means Git for Windows only adds two commands - git and gitk. In Git for Windows, there is a modified msys which may well be incompatible with the standard msys utils. Using the cmd wrapper should avoid clashes.
Upvotes: 3