Skip to content

Instantly share code, notes, and snippets.

@kevcooper
Last active August 29, 2015 14:10
Show Gist options
  • Save kevcooper/538ea0b385066392e639 to your computer and use it in GitHub Desktop.
Save kevcooper/538ea0b385066392e639 to your computer and use it in GitHub Desktop.
Basic programming tool setup for beginners
#!/bin/bash
#This script sets up some basic tools to start programming in Java on OS X
#install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#install cask
brew install brew-cask
#install latest git
brew install git
#install latest eclipse for java developers
brew cask install eclipse-java
#configure git
echo "In order to use services like GitHub, you must configure git with your name and email address. Would you like to configure git now?(Y/n)"
read ANSWER
if [ "$ANSWER" == "Y" ]; then
echo "Enter your first and last name"
read NAME
echo "Enter your email address"
read EMAIL
git config --global user.name = "$NAME"
git config --global user.email = "$EMAIL"
fi
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment