Created
August 10, 2015 02:28
-
-
Save becckitt/dac3abb2803f365ab287 to your computer and use it in GitHub Desktop.
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
function gcsubl () { | |
git clone $1; | |
cd `basename $1 .git`; # in bash, everything between backticks | |
open . -a /Applications/Sublime\ Text.app; # will be replaced with the output of the command. | |
# basename chops off the path from the file name | |
} # .git removes the file extension |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment