sh [Homebrew Commands] #installer #homebrew #run
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh [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
以上是关于sh [Homebrew Commands] #installer #homebrew #run的主要内容,如果未能解决你的问题,请参考以下文章
sh node_commands.sh
sh commands-sequence.sh
sh sqoop-list-commands.sh
sh centos_linux_commands.sh
sh os-x-setup-commands.sh
sh os-x-setup-commands.sh