Skip to content

Instantly share code, notes, and snippets.

@ksaua
Created March 20, 2017 15:42
Show Gist options
  • Save ksaua/926378029d4767157acfa77867530bce to your computer and use it in GitHub Desktop.
Save ksaua/926378029d4767157acfa77867530bce to your computer and use it in GitHub Desktop.
Open cygwin in current directory
@echo off
SET currentdir=%cd%
C:
chdir C:\ksm\programmer\cygwin64\bin
for /f "tokens=*" %%i in ('cygpath %currentdir%') do set DIR_CYGPATH=%%i
bash --login -i -c "cd \"%DIR_CYGPATH%\"; exec bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment