-
-
Save nshtg/2534ad389942b7d4a2c2320e6b398eca to your computer and use it in GitHub Desktop.
Cygwin + Sublime Text 3 : works with files and Git
This file contains hidden or 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