Skip to content

Instantly share code, notes, and snippets.

@floodkoff
Created May 27, 2013 09:21
Show Gist options
  • Save floodkoff/5656061 to your computer and use it in GitHub Desktop.
Save floodkoff/5656061 to your computer and use it in GitHub Desktop.
I love Sublime Text and try to use it everyday everywhere. But is tricky to run it correctly under cygwin, because of it's paths. I use this shell script to run Sublime Text correctly from cygwin console. I usualy put this file in my HOME directory and run git config --global core.editor "~/sublime_cygwin.sh" to use it as git default text editor…
#!/bin/sh
"/cygdrive/d/programs/Sublime Text 2.0.1 x64/sublime_text.exe" -w -n "$(cygpath -w "$*")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment