-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall.sh
executable file
·144 lines (106 loc) · 3.34 KB
/
install.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
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
141
142
143
144
#!/bin/sh
set -e
DOTFILES_ROOT="$HOME/.dotfiles"
cd "$HOME"
ln_s () {
ln -sfn "$DOTFILES_ROOT/$1" "$2"
}
echo "Checking for SSH key, generating one if it doesn't exist"
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
echo "Copying public key to clipboard. Paste it into your Github account"
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh
echo "Installing Homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew doctor
brew update
echo "Installing GCC"
brew tap homebrew/versions
brew install gcc49
brew install libtool libyaml libksba
echo "Installing cURL"
brew install curl-openssl
echo "Installing OpenSSL"
brew install openssl
echo "Installing GPG"
brew install gpg
echo "Installing Git"
brew install git
brew install git-flow
echo "Installing Exuberant Tags"
brew install ctags-exuberant
echo "Installing The Silver Searcher"
brew install the_silver_searcher
ln_s .agignore .
echo "Installing Tmux"
brew install tmux
echo "Installing Vim"
curl ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 | tar -xz
cd vim73 && ./configure --with-features=huge --enable-cscope --enable-rubyinterp=dynamic --enable-multibyte && make && sudo make install
cd .. && rm -rf vim*
echo "Installing PostgreSQL"
brew install postgres --no-python
initdb /usr/local/var/postgres
echo "Installing Redis"
brew install redis
echo "Installing Go"
brew install go --cross-compile-all
echo "Installing Node"
brew install node
curl http://npmjs.org/install.sh | sh
echo "Installing Keybase"
npm install -g keybase-installer
keybase-installer
echo "Installing Chruby"
brew install chruby
ln_s .ruby-version .
echo "Installing ruby-install"
brew install ruby-install
echo "Configuring Ruby installation"
ln_s .pryrc .
echo "Installing Homebrew Cask"
brew install caskroom/cask/brew-cask
echo "Installing Virtualbox"
brew cask install virtualbox
echo "Installing Docker"
brew install docker
brew install boot2docker
brew install docker-compose
echo "Cloning dotfiles repo"
rm -rf ~/.dotfiles
git clone [email protected]:jodosha/dotfiles.git ~/.dotfiles
echo "Installing Oh-My-ZSH"
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
ln_s jodosha.zsh-theme .oh-my-zsh/themes
ln_s .zshrc .
[[ -f /etc/zprofile ]] || sudo mv /etc/zshenv /etc/zprofile
chsh -s /bin/zsh
echo "Configuring Tmux"
ln_s .tmux.conf .
echo "Configuring Git"
ln_s .gitconfig .
ln_s .gitignore_global .gitignore_global
git config --global core.excludesfile ~/.gitignore_global
echo "Installing user defined scripts"
mkdir -p ~/bin
ls bin | while read script; do ln_s "bin/$script" bin; done
# echo "Installing fonts"
# ls fonts | while read font; do open $font; done
# echo "Configuring iTerm2"
# open iTerm/Tomorrow\ Night.itermcolors
# cp iTerm/com.googlecode.iterm2.plist ~/Library/Preferences
echo "Configuring Vim"
ln_s .vim .
ln_s .vimrc .
echo "** Installing Vim plugins"
upgrade_vim
echo "Installing Ruby"
install_ruby
echo "** Configuring RubyGems.org account"
mkdir -p ~/.gem
curl -u jodosha https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
echo "** Configuring Heroku account"
curl https://toolbelt.heroku.com/install.sh | sh
heroku login
echo "Reloading the shell"
exec $SHELL -l