Sublime Text and Cygwin

May 21, 2015

Quickie shell script to use sublime as your editor in cygwin

Create ~/bin/subl

/cygdrive/c/Program\ Files/Sublime\ Text\ 3/subl.exe cygpath -wa "$*"

You may want to add the -w flag if you want to use it as your commit message editor for git/svn/hg/etc, which will cause it to wait until you save and close the file in Sublime Text before returning control.

Comments are closed.