Last active
August 29, 2015 14:10
-
-
Save kevcooper/538ea0b385066392e639 to your computer and use it in GitHub Desktop.
Basic programming tool setup for beginners
This file contains 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 | |
#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