Git Bash doesn’t see my PATH

Got it. As a Windows user, I’m used to type executable names without extensions. In my case, I wanted to execute a file called cup.bat. In a Windows shell, typing cup would be enough. Bash doesn’t work this way, it wants the full name. Typing cup.bat solved the problem. (I wasn’t able to run the file though, since apparently bash … Read more

How do I change the default location for Git Bash on Windows?

After installing msysgit I have the Git Bash here option in the context menu in Windows Explorer. So I just simply navigate to the directory and then open Bash right there. I also copied the default Git Bash shortcut to the desktop and edited its Start in property to point to my project directory. It works flawlessly. Windows 7×64, msysgit.

Vim Opening File E325 Attention Error

By closing the console without exiting Vim first, the Vim process got killed, and Vim didn’t have a chance to properly shut down. Vim uses swap files to store the last unpersisted changes to a buffer to avoid data loss in case of a crash; you can read the whole story at :help E325. In your case, as … Read more

Change the location of the ~ directory in a Windows install of Git Bash

I don’t understand, why you don’t want to set the $HOME environment variable since that solves exactly what you’re asking for. cd ~ doesn’t mean change to the root directory, but change to the user’s home directory, which is set by the $HOME environment variable. Quick’n’dirty solution Edit C:\Program Files (x86)\Git\etc\profile and set $HOME variable … Read more