Skip to content

Instantly share code, notes, and snippets.

@becckitt
Created August 10, 2015 02:28
Show Gist options
  • Save becckitt/dac3abb2803f365ab287 to your computer and use it in GitHub Desktop.
Save becckitt/dac3abb2803f365ab287 to your computer and use it in GitHub Desktop.
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