Skip to content

Instantly share code, notes, and snippets.

@aarmea
Last active August 29, 2015 14:06
Show Gist options
  • Save aarmea/6f39ea3d52b7c1f6f5b2 to your computer and use it in GitHub Desktop.
Save aarmea/6f39ea3d52b7c1f6f5b2 to your computer and use it in GitHub Desktop.
Invoke msysGit Bash anywhere
@ECHO OFF
@ Creates a msysGit Bash instance in your Windows shell session while keeping its environment variables.
@ Requires msysGit (obviously), which can be installed either from their website or through choco.
@ Put this file somewhere in your %PATH%, like C:\Windows\System32 (if you put it there, you'll also want it in C:\Windows\SysWOW64).
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment