-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
43 lines (36 loc) · 1.1 KB
/
bootstrap.sh
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
# Download and install the Xcode Command Line Tools
if [[ ! -x /usr/bin/gcc ]]; then
echo "Info | Install | xcode"
xcode-select --install
fi
# Download and install Homebrew
if [[ ! -x /usr/local/bin/brew ]]; then
echo "Info | Install | homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Modify the PATH
# This should be subsequently updated in shell settings
echo "Info | Update | PATH"
export PATH=/usr/local/bin:$PATH
echo "Info | Update | homebrew"
brew update
# # Download and install zsh
# if [[ ! -x /usr/local/bin/zsh ]]; then
# echo "Info | Install | zsh"
# brew install zsh
# fi
# Download and install git
if [[ ! -x /usr/local/bin/git ]]; then
echo "Info | Install | git"
brew install git
fi
# # Download and install python
# if [[ ! -x /usr/local/bin/python ]]; then
# echo "Info | Install | python"
# # brew install python --framework --with-brewed-openssl
# fi
# Download and install Ansible
if [[ ! -x /usr/local/bin/ansible ]]; then
echo "Info | Install | Ansible"
brew install ansible
fi