-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
277 lines (197 loc) · 6.72 KB
/
Makefile
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
### OS X ###
powerline_fonts_osx:
git clone https://github.com/powerline/fonts.git --depth=1
./fonts/install.sh
rm -rf fonts
homebrew_osx:
if ! type "brew" &> /dev/null; then /bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"; fi
brew_update_osx:
brew update
brew_osx: homebrew_osx brew_update_osx
fzf_osx:
brew install fzf
fzf_update_brew_osx: brew_osx install_fzf_osx
the_silver_searcher_osx:
brew install the_silver_searcher
tmux_osx:
brew install tmux
brew link tmux
tmux_update_brew_osx: brew_osx tmux_osx
node_osx:
brew install node
python_osx:
brew install python
java_osx:
brew tap adoptopenjdk/openjdk
brew install --cask adoptopenjdk8
cmake_osx:
brew install cmake
macvim_osx:
brew install macvim
go_osx:
brew install go
echo "" >> ${HOME}/.zshrc
echo "export PATH=\$${HOME}/go/bin:\$${PATH}" >> ${HOME}/.zshrc
rust_osx:
brew install rust
pyenv_install_osx:
curl -L "https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer" | /bin/bash
pyenv_setup_osx:
echo "" >> ${HOME}/.zshrc
echo "export PATH=\$${HOME}/.pyenv/shims:\$${PATH}" >> ${HOME}/.zshrc
echo "export PATH=\$${HOME}/.pyenv/bin:\$${PATH}" >> ${HOME}/.zshrc
echo 'eval "$$(pyenv init -)"' >> ${HOME}/.zshrc
pyenv_osx: pyenv_install_osx pyenv_setup_osx
rbenv_install_osx:
brew install rbenv
rbenv_setup_osx:
echo "" >> ${HOME}/.zshrc
echo "export PATH=\$${HOME}/.rbenv/shims:\$${PATH}" >> ${HOME}/.zshrc
echo 'eval "$$(rbenv init -)"' >> ${HOME}/.zshrc
rbenv_osx: rbenv_install_osx rbenv_setup_osx
antigen_osx:
mkdir -p ${HOME}/.antigen
cp ./antigen.zsh ${HOME}/.antigen/antigen.zsh
zsh ${HOME}/.antigen/antigen.zsh
notedown_osx:
pip install notedown
vim_config_osx: macvim_osx cmake_osx
curl -fLo ${HOME}/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cp .vimrc ${HOME}
mkdir -p ${HOME}/.vim
cp plugins.vim ${HOME}/.vim/
vim -c "PlugInstall" -c "qa!"
python3 ${HOME}/.vim/plugged/YouCompleteMe/install.py --all
zsh_config_osx: antigen_osx
cp .zshrc ${HOME}
tmux_config_osx: tmux_osx
git clone https://github.com/tmux-plugins/tpm ${HOME}/.tmux/plugins/tpm
cp .tmux.conf ${HOME}
snippets_osx:
mkdir -p ${HOME}/.vim/UltiSnips
cp -Rf snippets ~${HOME}/.vim/UltiSnips
osx: brew_osx powerline_fonts_osx fzf_osx the_silver_searcher_osx tmux_osx node_osx python_osx go_osx rust_osx java_osx zsh_config_osx vim_config_osx tmux_config_osx pyenv_osx rbenv_osx snippets_osx
### Arch ###
update_pacman_arch:
sudo pacman -Syu --noconfirm
yay_arch:
if ! type "yay" > /dev/null; then
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
cd ..
rm -rf yay
fi
zsh_arch:
sudo pacman -S --noconfirm zsh
cmake_arch:
sudo pacman -S --noconfirm cmake
powerline_fonts_arch:
git clone https://github.com/powerline/fonts.git --depth=1
./fonts/install.sh
rm -rf fonts
fzf_arch:
sudo pacman -S --noconfirm fzf
the_silver_searcher_arch:
sudo pacman -S --noconfirm the_silver_searcher
tmux_arch:
sudo pacman -S --noconfirm tmux
node_arch:
sudo pacman -S --noconfirm nodejs
npm_arch:
sudo pacman -S --noconfirm npm
python_arch:
sudo pacman -S --noconfirm python python-pip
go_arch:
sudo pacman -S --noconfirm go
rust_arch:
sudo pacman -S --noconfirm rust
pyenv_install_arch:
yay -S --noconfirm pyenv
pyenv_setup_arch:
echo "export PATH=\$${HOME}/.pyenv/shims/:\$${PATH}" >> ${HOME}/.zshrc
echo 'eval "\$${pyenv init -}"' >> ${HOME}/.zshrc
pyenv_arch: pyenv_install_arch pyenv_setup_arch
ruby_arch:
sudo pacman -S --noconfirm ruby
rbenv_install_arch: ruby_arch
yay -S --noconfirm rbenv
rbenv_setup_arch:
echo "export PATH=\$${HOME}/.rbenv/shims/\$${PATH}" >> ${HOME}/.zshrc
echo 'eval "\$$(rbenv init -)"' >> ${HOME}/.zshrc
rbenv_arch: rbenv_install_arch rbenv_setup_arch
antigen_arch: zsh_arch
mkdir -p ${HOME}/.antigen
cp ./antigen.zsh ${HOME}/.antigen/antigen.zsh
zsh ${HOME}/.antigen/antigen.zsh
notedown_arch:
pip install notedown
vim_config_arch: cmake_arch notedown_arch
curl -fLo ${HOME}/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cp .vimrc ${HOME}
mkdir -p ${HOME}/.vim
cp plugins.vim ${HOME}/.vim/
vim -c "PlugInstall" -c "qa!"
python3 ${HOME}/.vim/plugged/YouCompleteMe/install.py --all
zsh_config_arch: antigen_arch
cp .zshrc ${HOME}
tmux_config_arch: tmux_arch
cp .tmux.conf ${HOME}
snippets_arch:
mkdir -p ${HOME}/.vim/UltiSnips
cp -Rf snippets ~${HOME}/.vim/UltiSnips
arch: update_pacman_arch zsh_arch powerline_fonts_arch fzf_arch the_silver_searcher_arch node_arch npm_arch python_arch go_arch rust_arch zsh_config_arch vim_config_arch tmux_config_arch pyenv_arch rbenv_arch snippets_arch
### Debian ###
install_dev_libs_debian:
sudo apt-get install -y make build-essentials libssl-dev zliblg-dev libbz-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
update_apt_debian:
sudo apt-get update -y
zsh_debian:
sudo apt-get install -y zsh
cmake_debian:
sudo apt-get install -y cmake
powerline_fonts_debian:
git clone https://github.com/powerline/fonts.git --depth=1
./fonts/install.sh
rm -rf fonts
fzf_debian:
sudo apt-get install -y fzf
the_silver_searcher_debian:
sudo apt-get install -y silversearcher-ag
tmux_debian:
sudo apt-get install -y tmux
node_debian:
sudo apt-get install -y nodejs
npm_debian:
sudo apt-get install -y npm
go_debian:
sudo apt-get install -y golang
rust_debian:
sudo apt-get install -y rustc
pyenv_install_debian:
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
pyenv_setup_debian:
echo "export PATH=\$${HOME}/.pyenv/shims/:\$${PATH}" >> ${HOME}/.zshrc
echo 'eval "\$${pyenv init -}"' >> ${HOME}/.zshrc
pyenv_debian: pyenv_install_debian pyenv_setup_debian
antigen_debian: zsh_debian
mkdir -p ${HOME}/.antigen
cp ./antigen.zsh ${HOME}/.antigen/antigen.zsh
zsh ${HOME}/.antigen/antigen.zsh
notedown_debian:
pip install notedown
vim_config_debian: cmake_debian notedown_debian
curl -fLo ${HOME}/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cp .vimrc ${HOME}
mkdir -p ${HOME}/.vim
cp plugins.vim ${HOME}/.vim/
vim -c "PlugInstall" -c "qa!"
python3 ${HOME}/.vim/plugged/YouCompleteMe/install.py --all
zsh_config_debian: antigen_debian
cp .zshrc ${HOME}
tmux_config_debian: tmux_debian
cp .tmux.conf ${HOME}
snippets_debian:
mkdir -p ${HOME}/.vim/UltiSnips
cp -Rf snippets ~${HOME}/.vim/UltiSnips
debian: update_apt_debian zsh_debian powerline_fonts_debian fzf_debian the_silver_searcher_debian node_debian npm_debian go_debian rust_debian zsh_config_debian vim_config_debian tmux_config_debian pyenv_debian snippets_debian