Skip to content

Instantly share code, notes, and snippets.

@jherax
Forked from cmalard/subl
Created March 14, 2018 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jherax/3f67621f026cbae18d73a343f972f682 to your computer and use it in GitHub Desktop.
Save jherax/3f67621f026cbae18d73a343f972f682 to your computer and use it in GitHub Desktop.
Cygwin + Sublime Text 3 : works with files and Git
#!/bin/bash
# To create in [.babun/]cygwin/usr/local/bin/subl with chmod +x
ARGS=""
while test $# -gt 0
do
ARGS="$ARGS ${1#/cygdrive/[a-zA-Z]}"; # Remove /cygdrive and disk letter from the path
shift
done
/cygdrive/c/Program\ Files/Sublime\ Text\ 3/subl.exe $ARGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment