Skip to content

Commit 5e8819c

Browse files
author
codingnirvana
committed
Using scala 2.11 and Java 8 versions
1 parent 5bcf60f commit 5e8819c

File tree

1 file changed

+50
-51
lines changed

1 file changed

+50
-51
lines changed

setup.sh

Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ brews=(
1515
nmap
1616
python
1717
ruby
18-
scala
18+
scala211
1919
sbt
2020
tmux
2121
zsh
@@ -75,7 +75,6 @@ vscode=(
7575

7676
######################################## End of app list ########################################
7777
set +e
78-
set -x
7978

8079

8180
if test ! $(which brew); then
@@ -124,62 +123,62 @@ function proceed_prompt {
124123
fi
125124
}
126125

127-
# echo "Install Java"
128-
# brew cask install java
126+
echo "Install Java"
127+
brew cask install java8
129128

130-
# brew info ${brews[@]}
131-
# proceed_prompt
132-
# install 'brew install' ${brews[@]}
129+
brew info ${brews[@]}
130+
proceed_prompt
131+
install 'brew install' ${brews[@]}
133132

134-
# brew install caskroom/cask/brew-cask
135-
# brew tap caskroom/versions
133+
brew install caskroom/cask/brew-cask
134+
brew tap caskroom/versions
136135

137-
# brew cask info ${casks[@]}
138-
# proceed_prompt
139-
# install 'brew cask install --appdir=/Applications' ${casks[@]}
136+
brew cask info ${casks[@]}
137+
proceed_prompt
138+
install 'brew cask install --appdir=/Applications' ${casks[@]}
140139

141140
echo "Install pip"
142141
install 'easy_install pip'
143142

144143
# TODO: add info part of install
145144
install 'pip install' ${pips[@]}
146-
# install 'gem install' ${gems[@]}
147-
# install 'npm install -g' ${npms[@]}
148-
# install 'code --install-extension' ${vscode[@]}
149-
150-
# echo "Setting up zsh ..."
151-
# curl -L http://install.ohmyz.sh | sh
152-
# chsh -s $(which zsh)
153-
# # TODO: Auto-set theme to "fino-time" in ~/.zshrc (using antigen?)
154-
# curl -sSL https://get.rvm.io | bash -s stable # required for some zsh-themes
155-
156-
# echo "Setting git defaults ..."
157-
# git config --global rerere.enabled true
158-
# git config --global branch.autosetuprebase always
159-
# git config --global credential.helper osxkeychain
160-
# git config --global user.name $1
161-
# git config --global user.email $2
162-
163-
# echo "Upgrading ..."
164-
# pip install --upgrade setuptools
165-
# pip install --upgrade pip
166-
# gem update --system
167-
168-
# prompt "Install mac CLI [NOTE: Say NO to bash-completions since we have fzf]!"
169-
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)"
170-
171-
# echo "Update packages"
172-
# pip3 install --upgrade pip setuptools wheel
173-
# mac update
174-
175-
# echo "Cleaning up ..."
176-
# brew cleanup
177-
# brew cask cleanup
178-
179-
# for fail in ${fails[@]}
180-
# do
181-
# echo "Failed to install: $fail"
182-
# done
183-
184-
# read -p "Run `mackup restore` after DropBox has done syncing"
145+
install 'gem install' ${gems[@]}
146+
install 'npm install -g' ${npms[@]}
147+
install 'code --install-extension' ${vscode[@]}
148+
149+
echo "Setting up zsh ..."
150+
curl -L http://install.ohmyz.sh | sh
151+
chsh -s $(which zsh)
152+
# TODO: Auto-set theme to "fino-time" in ~/.zshrc (using antigen?)
153+
curl -sSL https://get.rvm.io | bash -s stable # required for some zsh-themes
154+
155+
echo "Setting git defaults ..."
156+
git config --global rerere.enabled true
157+
git config --global branch.autosetuprebase always
158+
git config --global credential.helper osxkeychain
159+
git config --global user.name $1
160+
git config --global user.email $2
161+
162+
echo "Upgrading ..."
163+
pip install --upgrade setuptools
164+
pip install --upgrade pip
165+
gem update --system
166+
167+
prompt "Install mac CLI [NOTE: Say NO to bash-completions since we have fzf]!"
168+
sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)"
169+
170+
echo "Update packages"
171+
pip3 install --upgrade pip setuptools wheel
172+
mac update
173+
174+
echo "Cleaning up ..."
175+
brew cleanup
176+
brew cask cleanup
177+
178+
for fail in ${fails[@]}
179+
do
180+
echo "Failed to install: $fail"
181+
done
182+
183+
read -p "Run `mackup restore` after DropBox has done syncing"
185184
echo "Done"

0 commit comments

Comments
 (0)