This repository was archived by the owner on Dec 10, 2021. It is now read-only.
forked from pivotal/workstation-setup
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·141 lines (115 loc) · 3.12 KB
/
setup.sh
File metadata and controls
executable file
·141 lines (115 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#!/usr/bin/env bash
# Fail immediately if any errors occur
set -e
clear
echo
echo "You need to agree to the Xcode Software License Agreement"
echo "You will need to enter your password first."
echo "Then, when the agree comes up, press 'q' to jump to the end and then type 'agree' and press return"
echo
sudo xcodebuild -license
if hash brew 2>/dev/null; then
echo "Homebrew is already installed!"
else
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo
echo "Ensuring you have the latest Homebrew..."
brew update
echo
echo "Ensuring you have a healthy Homebrew enviroment..."
brew doctor
echo
echo "Ensuring your Homebrew directory is writeable..."
sudo chown -R $(whoami) /usr/local/bin
echo
echo "Cleaning up your Homebrew installation..."
brew cleanup
echo
echo "Installing bash-it"
brew install grc
brew install coreutils
cp files/dircolors.ansi-dark ~/.dircolors
cp files/.inputrc ~/.inputrc
rm -rf ~/.bash_it
pushd ~/
git clone https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh
popd
echo
echo "Adding Pivotal Tab to Homebrew"
brew tap pivotal/tap
echo
echo "Installing Cloud Foundry Command-line Inteface"
brew tap cloudfoundry/tap
brew install cf-cli
echo
echo "Installing git tools"
brew install git
brew tap git-duet/tap
brew install git-duet
echo
echo "Putting a sample git-pair file in ~/.pairs"
cp files/.pairs ~/.pairs
echo
echo "Installing common applications"
brew cask install flux
brew cask install flycut
brew cask install github-desktop
brew cask install google-chrome
brew cask install iterm2
brew cask install macdown
brew cask install screenhero
brew cask install shiftit
brew cask install slack
brew cask install sourcetree
brew cask install textmate
echo "Setting up iterm"
cp files/com.googlecode.iterm2.plist ~/Library/Preferences
echo
echo "Installing MacVim and vim configuration"
brew install macvim
cd ~/
rm -rf ~/.vim
git clone https://github.com/pivotalcommon/vim-config.git ~/.vim
~/.vim/bin/install
echo
echo "Installing Java Development tools"
brew cask install java
brew cask install intellij-idea
brew install maven
brew install gradle
brew install nexus
brew install jenkins
brew install springboot
echo
echo "Installing Ruby tools and Ruby 2.3.0"
brew install rbenv
eval "$(rbenv init -)"
rbenv install 2.3.0
rbenv global 2.3.0
gem install bundler
rbenv rehash
brew cask install rubymine
echo
echo "Setting up Pivotal IDE preferences..."
cd ~/workspace
rm -rf pivotal_ide_prefs
git clone https://github.com/pivotal/pivotal_ide_prefs.git
pushd pivotal_ide_prefs/cli/
./bin/ide_prefs install --ide=intellij
./bin/ide_prefs install --ide=rubymine
popd
echo
echo "Adding Homebrew's sbin to your PATH..."
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
echo
echo "Adding rbenv initialization to .bash_profile..."
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
echo
echo "Done!"
echo
echo "After checking the above output for any problems, start a new iTerm session to make use of all the tools that have been installed."
echo "Additionally, the results of this setup have been stored in setup.log for review."
echo