Skip to content

Instantly share code, notes, and snippets.

@greymd
Created September 15, 2014 06:59
Show Gist options
  • Save greymd/6a8b4c07198d87574e8c to your computer and use it in GitHub Desktop.
Save greymd/6a8b4c07198d87574e8c to your computer and use it in GitHub Desktop.
set cdpath=%~1
set escapedPath=%cdpath:\=\\%
start C:\cygwin64\bin\mintty.exe /bin/bash -lc "cd '%escapedPath%'; exec bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment