Skip to content

Instantly share code, notes, and snippets.

@m93a
Created November 7, 2017 10:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m93a/cb41dcbd72ee7ff9fea3726a28d9f895 to your computer and use it in GitHub Desktop.
Save m93a/cb41dcbd72ee7ff9fea3726a28d9f895 to your computer and use it in GitHub Desktop.
Enable bash.exe for 32-bit programs
@echo off
rem To use bash seamlessly from 32bit apps,
rem add this file to your %PATH%.
if exist C:\Windows\Sysnative\bash.exe (
start "bash.exe" /D "%cd%" /B /wait "C:\Windows\Sysnative\bash.exe" %*
) else (
start "bash.exe" /D "%cd%" /B /wait "C:\Windows\System32\bash.exe" %*
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment