-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap
executable file
·37 lines (29 loc) · 891 Bytes
/
bootstrap
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
#!/bin/bash
function header() {
echo "$(tput sgr 0 1)$(tput setaf 6)$1$(tput sgr0)"
}
# xcode-select
header "Install xcode-select..."
xcode-select -p > /dev/null
if [[ $? != 0 ]] ; then
xcode-select --install
fi
# brew
header "Install homebrew..."
source ./homebrew/brew.sh
# git-friendly
header "Install git-friendly..."
sudo bash < <( curl -s https://raw.githubusercontent.com/jamiew/git-friendly/master/install.sh )
# tilde
header "Install dot files..."
/usr/local/bin/python3 sync.py
# python
header "Install python 3.x modules..."
/usr/local/bin/python3 -m pip install --upgrade pip setuptools wheel cryptography ansible requests virtualenv virtualenvwrapper
# oh-my-zsh
header "Install oh-my-zsh..."
if [ ! -e ~/.oh-my-zsh ]; then
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi
# fonts
cp -vr ./fonts/*.ttf /Library/Fonts/