Windows Git Bash shell cannot find commands?
<p>I have recently been screwing around with Windows Git Bash shell to try and force its <code>~</code> to not be my mapped network drive <code>Z:</code> and instead something more logical and useful. To do so I tried to edit <code>C:\Program Files (x86)\Git\etc\profile</code>, upon saving my changes and restarting it seems that GitBash now cannot find most all commands.</p>

<p><a href="https://i.stack.imgur.com/HiEhh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HiEhh.png" alt="enter image description here"></a></p>

<p><strong>What happened and how do I fix this?</strong></p>

<p>I'd also like to note that I could not edit <code>profile</code> with Notepad++ or any other text editor, each complained that the file was already opened elsewhere on the computer when trying to save the changes. To edit the file I had to use <code>vim</code> within Git Bash. Also once I saved these inserts (<code>HOME="C:\Users\..\__GitBash\</code>) I could not view the changes with Notepad++, the file modified date didn't even change (though oddly enough it seems that <code>~</code> is now <code>C:\Users\...\Documents</code>; BUT NOT <code>C:\Users\...\Documents\__GitBash\</code>)... Also note I do not have administrator privileges on this computer.</p>