-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.sh
103 lines (81 loc) · 2.02 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
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
# Load configuration
. my.sh
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install more recent versions of some OS X tools
brew tap homebrew/dupes
brew install homebrew/dupes/grep
binaries=(
rename
python
node
git
wget
fish
)
echo "installing binaries..."
brew install ${binaries[@]}
brew cleanup
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
# Apps
apps=(
alfred
dropbox
google-chrome
iterm2
sublime-text3
atom
flux
skype
clipmenu
onepassword
viscosity
bartender
p4merge
istat-menus
android-file-transfer
slack
)
# Link apps to Alfred
brew cask alfred link
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps..."
brew cask install --appdir="/Applications" ${apps[@]}
# oh-my-fish
curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.fish | fish
# Setup GitHub
GITHUB_KEY=~/.ssh/github_rsa
SSH_CONFIG=~/.ssh/config
echo "StrictHostKeyChecking no" >> $SSH_CONFIG
if [ ! -f $GITHUB_KEY ]; then
ssh-keygen -t rsa -C "$EMAIL" -N '' -f $GITHUB_KEY
echo "Host GitHub github.com" >> $SSH_CONFIG
echo "Hostname github.com" >> $SSH_CONFIG
echo "IdentityFile $GITHUB_KEY" >> $SSH_CONFIG
echo "\n" >> $SSH_CONFIG
fi
# dotfiles
git clone https://github.com/MicTech/dotfiles.git $DOTFILES_DIR
# dotfiles - Git
ln -s $DOTFILES_DIR/.gitconfig ~/.gitconfig
# fish
## add fish to list of shells
sudo bash -c "echo \"/usr/local/bin/fish\" >> /etc/shells"
## change default shell
chsh -s /usr/local/bin/fish
# iTerm2
wget http://www.iterm2.com/hostedcolors/Solarized%20Dark.itermcolors -P ~/dotfiles/.local/iterm2