Skip to content

Instantly share code, notes, and snippets.

@eckdanny
Created August 29, 2013 02:52
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 eckdanny/6373760 to your computer and use it in GitHub Desktop.
Save eckdanny/6373760 to your computer and use it in GitHub Desktop.
to install, just paste into your ~/.bashrc file. Then open a new terminal (or source ~/.bashrc), create a directory, and run with `bobstrap` and you'll be all setup!
bobstrap() {
# CONFIG
GIT_USERNAME='thebobg'
GIT_REPONAME='bobStrap'
GIT_BRANCH='master'
# Stop Editing Below Here
curl -L -s -o /tmp/"$GIT_REPONAME".tar.gz https://api.github.com/repos/"$GIT_USERNAME"/"$GIT_REPONAME"/tarball/"$GIT_BRANCH"
tar -xf /tmp/"$GIT_REPONAME".tar.gz --strip 1 --exclude '*\.md' -C $(pwd) && rm /tmp/"$GIT_REPONAME".tar.gz
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment