-
-
Save jherax/3f67621f026cbae18d73a343f972f682 to your computer and use it in GitHub Desktop.
Cygwin + Sublime Text 3 : works with files and Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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