Skip to content

Instantly share code, notes, and snippets.

@wx13
Created March 9, 2012 23:23
Show Gist options
  • Save wx13/2009259 to your computer and use it in GitHub Desktop.
Save wx13/2009259 to your computer and use it in GitHub Desktop.
windows batch script to open a file in a cygwin editor (replace "jedi" with editor of your choice)
@echo off
C:
chdir C:/Users/jdevita/cygwin/bin
set HOME=\Users\jdevita\cygwin\home\jdevita
echo %1 > C:/Users/jdevita/cygwin/tmp/temp.txt
bash --login -i -c "jedi \"$(sed -e 's/\"//g' -e 's/\([A-Z]\):/\/cygdrive\/\1/' -e 's/\\\/\//g' -e 's/ *$//' /tmp/temp.txt)\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment