Skip to content

Instantly share code, notes, and snippets.

@emilefraser
Created June 12, 2017 02:33
Show Gist options
  • Save emilefraser/329527e2c11b87602a9d54a34097b4f7 to your computer and use it in GitHub Desktop.
Save emilefraser/329527e2c11b87602a9d54a34097b4f7 to your computer and use it in GitHub Desktop.
[Homebrew Commands] #installer #homebrew #run
###############################################################################
# Install Applications #
###############################################################################
# Install Homebrew
echo "Installing Homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
clear
echo -e "${RED}Install NodeJS? ${NC}[y/N]"
read -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Install Nodejs
echo "Installing NVM"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash
export NVM_DIR="/Users/adam/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm so we dont have to reboot the terminal
fi
clear
echo -e "${RED}Install Unity3D? ${NC}[y/N]"
read -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
brew cask install unity unity-web-player
fi
clear
echo -e "${RED}Install Python? ${NC}[y/N]"
read -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Install Python
brew install python
fi
clear
echo -e "${RED}Install Ruby?${NC} [y/N]"
read -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Install ruby
brew install gpg
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
\\curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install ruby-2.3.1
gem install bundler
gem install rails
fi
clear
echo -e "${RED}Install Cocoapods?${NC} [y/N]"
read -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Install Cocoapods
sudo gem install cocoapods
fi
clear
echo -e "${RED}Setup for Java Devlopment? ${NC}[y/N]"
read -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
brew cask install \\
java \\
eclipse-ide \\
eclipse-java
fi
clear
echo -e "${RED}Setup For Android Developemnt?${NC} [y/N]"
read -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
brew cask install \\
java \\
eclipse-ide \\
eclipse-java \\
android-studio \\
intellij-idea-ce
brew install android-sdk
fi
clear
echo -e "${RED}Install Databases? ${NC}[y/N]"
read -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
brew install mysql
brew install postgresql
brew install mongo
brew install redis
brew install elasticsearch
# Install mysql workbench
# Install Cask
brew install caskroom/cask/brew-cask
brew cask install --appdir="/Applications" mysqlworkbench
fi
clear
# Install Homebrew Apps
echo "Installing Homebrew Command Line Tools"
brew install \\
tree \\
wget \\
ack \\
heroku-toolbelt
# Install EMacs
echo "Installing EMacs"
brew install emacs --with-cocoa
brew linkapps emacs
brew tap caskroom/cask
echo "Installing Apps"
brew cask install \\
google-chrome \\
coderunner \\
gitter \\
github-desktop \\
atom \\
gitkraken \\
mamp \\
macdown \\
google-drive \\
iterm2 \\
sublime-text \\
virtualbox \\
scratch
echo "Cleaning Up Cask Files"
brew cask cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment