-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
335 lines (328 loc) · 15.1 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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# This Makefile will install anything missing from your Mac
#
# If you need to set up a new Mac, run setup.sh
# After editing a file in this repo,
# run make all to check if dotfiles need updating
# Existing packages will not be updated,
# To update all packages, run update.sh
AG = $(shell brew --prefix)/bin/ag
BASH = $(shell brew --prefix)/bin/bash
BAT = $(shell brew --prefix)/bin/bat
BREW = $(shell brew --prefix)/bin/brew
BTM = $(shell brew --prefix)/bin/btm
DELTA = $(shell brew --prefix)/bin/delta
EMACS = $(shell brew --prefix)/bin/emacs
EXA = $(shell brew --prefix)/bin/exa
FASD = $(shell brew --prefix)/bin/fasd
FD = $(shell brew --prefix)/bin/fd
FZF = $(shell brew --prefix)/bin/fzf
GH = $(shell brew --prefix)/bin/gh
GIT = $(shell brew --prefix)/bin/git
GMV = $(shell brew --prefix)/bin/gmv
NODE = $(shell brew --prefix)/bin/node
NOTI = $(shell brew --prefix)/bin/noti
NVIM = $(shell brew --prefix)/bin/nvim
PASS = $(shell brew --prefix)/bin/pass
POPPLER = $(shell brew --prefix)/bin/pdftotext
RENAME = $(shell brew --prefix)/bin/rename
RG = $(shell brew --prefix)/bin/rg
RSTATS = $(shell brew --prefix)/bin/r
SCIM = $(shell brew --prefix)/bin/scim
TLDR = $(shell brew --prefix)/bin/tldr
TMUX = $(shell brew --prefix)/bin/tmux
VIM = $(shell brew --prefix)/bin/vim
VSCODE_LIVESHARE = $(wildcard ~/.vscode/extensions/ms-vsliveshare.vsliveshare-*)
VSCODE_PYLANCE = $(wildcard ~/.vscode/extensions/ms-python.vscode-pylance-*)
VSCODE_PYTHON = $(wildcard ~/.vscode/extensions/ms-python.python-*)
VSCODE_R = $(wildcard ~/.vscode/extensions/ikuyadeu.r-*)
VSCODE_TABNINE = $(wildcard ~/.vscode/extensions/tabnine.tabnine-vscode-*)
VSCODE_VIM = $(wildcard ~/.vscode/extensions/asvetliakov.vscode-neovim-*)
all: ag alfred alttab bash bat bottom brew coc conda copyq emacs exa default fasd fd font fzf git gmv ipy iterm jupyter jetbrains karabiner neovim node noti pass ptpython radian rename repo rg rstudio scim slate tldr tmux vim vimr vscode poppler zsh
ag: $(AG)
alfred: /Applications/Alfred4.app
alttab: /Applications/AltTab.app
slate: /Applications/Slate.app ~/.slate
bash: $(BASH) ~/.bash_profile ~/.inputrc
bat: $(BAT)
bottom: $(BTM) ~/.config/bottom/bottom.toml
brew: $(BREW) ~/.Brewfile
coc: ~/.vim/coc-settings.json ~/.config/nvim/coc-settings.json
conda: $(shell brew --prefix)/bin/conda
copyq: /Applications/CopyQ.app
default: ~/Library/KeyBindings/DefaultKeyBinding.dict
emacs: $(EMACS) ~/.emacs.d ~/.spacemacs ~/.doom.d ~/.config/doom ~/.config/doom/config.el ~/.config/doom/package.el
exa: $(EXA)
fasd: $(FASD)
fd: $(FD)
font: ~/Library/Fonts/FiraCodeRegularNerdFontComplete.otf
fzf: $(FZF)
git: $(GIT) $(GH) $(DELTA) ~/.gitconfig ~/.gitignore ~/.gitattributes
gmv: $(GMV)
ipy: $(shell brew --prefix)/bin/ipython ~/.ipython/profile_default/ipython_config.py # ~/.ipython/profile_default/startup/keybindings.py
iterm: ~/com.googlecode.iterm2.plist /Applications/iTerm.app
jetbrains: /Applications/JetBrainsToolbox.app ~/.ideavimrc
jupyter: $(shell brew --prefix)/bin/jupyter ~/.jupyter/lab/user-settings/jupyterlab/shortcuts-extension/shortcuts.jupyterlab-settings
karabiner: ~/.config/karabiner/karabiner.json /Applications/Karabiner-Elements.app
neovim: $(NVIM) ~/.config/nvim/init.vim ~/.local/share/nvim/undo ~/tmux_split.vim
node: $(NODE)
noti: $(NOTI)
pass: $(PASS)
poppler: $(POPPLER)
ptpython: $(shell brew --prefix)/bin/ptpython ~/Library/ApplicationSupport/ptpython/config.py
radian: $(shell brew --prefix)/bin/radian ~/.radian_profile
rename: $(RENAME)
repo: ~/maptv/setup
rg: $(RG)
rstudio: $(brew --prefix)/Caskroom/mambaforge/base/envs/r ~/.config/rstudio/keybindings/editor_bindings.json ~/.config/rstudio/keybindings/rstudio_bindings.json ~/.config/rstudio/rstudio-prefs.json
scim: $(SCIM)
tldr: $(TLDR)
tmux: $(TMUX) ~/.tmux.conf ~/.tmux.conf.local ~/.tmux/plugins/tpm
vim: $(VIM) ~/.vimrc ~/.vim/undodir
vimac: /Applications/Vimac.app
vimr: /Applications/VimR.app
vscode: /Applications/VSCodium.app $(VSCODE_LIVESHARE) $(VSCODE_PYLANCE) $(VSCODE_PYTHON) $(VSCODE_R) $(VSCODE_TABNINE) $(VSCODE_VIM) ~/Library/ApplicationSupport/VSCodium/User/keybindings.json ~/Library/ApplicationSupport/VSCodium/User/settings.json
zsh: ~/.zsh/powerlevel10k ~/.p10k.zsh ~/.zshrc ~/.zsh/zsh-autosuggestions ~/.zsh/zsh-syntax-highlighting
~/maptv/setup/.bash_profile: repo
~/maptv/setup/.gitconfig: repo
~/maptv/setup/.ideavimrc: repo
~/maptv/setup/.inputrc: repo
~/maptv/setup/.p10k.zsh: repo
~/maptv/setup/.tmux.conf.local: repo
~/maptv/setup/.vimrc: repo
~/maptv/setup/.zshrc: repo
~/maptv/setup/com.googlecode.iterm2.plist: repo
~/maptv/setup/config.py: repo
~/maptv/setup/.radian_profile: repo
~/maptv/setup/editor_bindings.json: repo
~/maptv/setup/init.vim: repo
~/maptv/setup/ipython_config.py: repo
~/maptv/setup/karabiner.json: repo
~/maptv/setup/keybindings.json: repo
# ~/maptv/setup/keybindings.py: repo
~/maptv/setup/rstudio-prefs.json: repo
~/maptv/setup/rstudio_bindings.json: repo
~/maptv/setup/settings.json: repo
$(AG):
-brew install ag
/Applications/Alfred4.app:
-brew install --cask alfred
-ln -sf /Applications/Alfred\ 4.app /Applications/Alfred4.app
/Applications/AltTab.app:
-brew install --cask alttab
/Applications/Slate.app:
-brew install --cask slate
~/.slate:
ln -sf ~/maptv/setup/.slate ~/.slate
$(BASH):
-brew install bash
~/.bash_profile: ~/maptv/setup/.bash_profile
ln -sf ~/maptv/setup/.bash_profile ~/.bash_profile
~/.inputrc: ~/maptv/setup/.inputrc
ln -sf ~/maptv/setup/.inputrc ~/.inputrc
~/.config/bottom/bottom.toml: ~/maptv/setup/bottom.toml
mkdir -p ~/.config/bottom
ln -sf ~/maptv/setup/bottom.toml ~/.config/bottom/bottom.toml
$(BAT):
-brew install bat
$(BTM):
-brew install clementtsang/bottom/bottom
$(BREW):
-echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
~/.Brewfile:
ln -sf ~/maptv/setup/Brewfile ~/.Brewfile
~/.config/nvim/coc-settings.json: ~/maptv/setup/coc-settings.json
mkdir -p ~/.config/nvim
ln -sf ~/maptv/setup/coc-settings.json ~/.config/nvim/coc-settings.json
~/.vim/coc-settings.json: ~/maptv/setup/coc-settings.json
mkdir -p ~/.vim/
ln -sf ~/maptv/setup/coc-settings.json ~/.vim/coc-settings.json
$(shell brew --prefix)/bin/conda:
-brew install mambaforge
-$(shell brew --prefix)/bin/conda install -yc conda-forge cookiecutter neovim
$(DELTA):
-brew install git-delta
~/Library/KeyBindings/DefaultKeyBinding.dict:
mkdir -p ~/Library/KeyBindings
ln -fs ~/maptv/setup/karabiner.json ~/.config/karabiner
$(EMACS):
mkdir -p ~/.config/emacs
-brew install --cask emacs
-brew install emacs
-brew link --overwrite emacs
ln -fs ~/maptv/setup/init.el ~/.config/emacs/init.el
~/.emacs.d:
-git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
~/.spacemacs: ~/maptv/setup/.spacemacs
-ln -fs ~/maptv/setup/.spacemacs ~/.spacemacs
~/.doom.d:
git clone https://github.com/hlissner/doom-emacs ~/.doom.d
~/.config/doom:
export DOOMDIR=~/.config/doom
mkdir -p ~/.config/doom
~/.doom.d/bin/doom install
~/.config/doom/config.el: ~/maptv/setup/config.el
-ln -fs ~/maptv/setup/config.el ~/.config/doom/config.el
~/.config/doom/package.el: ~/maptv/setup/package.el
-ln -fs ~/maptv/setup/package.el ~/.config/doom/package.el
~/.doom.d/bin/doom sync
$(EXA):
-brew install exa
$(FASD):
-brew install fasd
$(FD):
-brew install fd
/Applications/CopyQ.app:
-brew install --cask copyq
~/Library/Fonts/FiraCodeRegularNerdFontComplete.otf:
-brew install --cask homebrew/cask-fonts/font-fira-code-nerd-font
-ln -fs ~/Library/Fonts/Fira\ Code\ Regular\ Nerd\ Font\ Complete.otf ~/Library/Fonts/FiraCodeRegularNerdFontComplete.otf
$(FZF):
-brew install fzf
-$(brew --prefix)/opt/fzf/install --completion --key-bindings --no-fish --no-update-rc
$(GH):
-brew install gh
$(GIT):
-brew install git
~/.gitattributes:
curl https://gist.githubusercontent.com/tekin/12500956bd56784728e490d8cef9cb81/raw/e474af61231687b0e1a4ec59d4becd97537ef6c0/.gitattributes -o ~/.gitattributes
~/.gitconfig: ~/maptv/setup/.gitconfig
ln -sf ~/maptv/setup/.gitconfig ~/.gitconfig
~/.gitignore: ~/maptv/setup/.gitignore
ln -sf ~/maptv/setup/.gitignore ~/.gitignore
$(GMV):
-brew install coreutils
/Applications/iTerm.app:
-brew install --cask iterm2
~/com.googlecode.iterm2.plist: ~/maptv/setup/com.googlecode.iterm2.plist
ln -sf ~/maptv/setup/com.googlecode.iterm2.plist ~/com.googlecode.iterm2.plist
/Applications/JetBrainsToolbox.app:
-brew install --cask jetbrains-toolbox
-ln -fs /Applications/JetBrains\ Toolbox.app /Applications/JetBrainsToolbox.app
$(shell brew --prefix)/bin/jupyter:
-python -m pip install jupyter
~/.ideavimrc: ~/maptv/setup/.ideavimrc
-ln -fs ~/maptv/setup/.ideavimrc ~/.ideavimrc
/Applications/Karabiner-Elements.app:
-brew install --cask karabiner-elements
~/.config/karabiner/karabiner.json: ~/maptv/setup/karabiner.json
mkdir -p ~/.config/karabiner
-ln -fs ~/maptv/setup/karabiner.json ~/.config/karabiner/
$(shell brew --prefix)/bin/ipython:
-python -m pip install git+https://github.com/maptv/ipython
~/.ipython/profile_default/ipython_config.py: ~/maptv/setup/ipython_config.py
mkdir -p ~/.ipython/profile_default
ln -sf ~/maptv/setup/ipython_config.py ~/.ipython/profile_default/ipython_config.py
# ~/.ipython/profile_default/startup/keybindings.py: ~/maptv/setup/keybindings.py
# mkdir -p ~/.ipython/profile_default/startup
# ln -sf ~/maptv/setup/keybindings.py ~/.ipython/profile_default/startup/keybindings.py
$(NODE):
-brew install node
$(NOTI):
-brew install noti
$(NVIM):
-brew install neovim
~/tmux_split.vim:
curl https://raw.githubusercontent.com/jalvesaq/Nvim-R/master/R/tmux_split.vim -o ~/tmux_split.vim
~/.jupyter/lab/user-settings/jupyterlab/shortcuts-extension/shortcuts.jupyterlab-settings: ~/maptv/setup/shortcuts.jupyterlab-settings
mkdir -p ~/.jupyter/lab/user-settings/@jupyterlab/shortcuts-extension ~/.jupyter/lab/user-settings/jupyterlab/shortcuts-extension
ln -sf ~/maptv/setup/shortcuts.jupyterlab-settings ~/.jupyter/lab/user-settings/@jupyterlab/shortcuts-extension/shortcuts.jupyterlab-settings
ln -sf ~/maptv/setup/shortcuts.jupyterlab-settings ~/.jupyter/lab/user-settings/jupyterlab/shortcuts-extension/shortcuts.jupyterlab-settings
~/.config/nvim/init.vim: ~/maptv/setup/init.vim
mkdir -p ~/.config/nvim
ln -sf ~/maptv/setup/init.vim ~/.config/nvim/init.vim
~/.config/nvim/ginit.vim: ~/maptv/setup/ginit.vim
mkdir -p ~/.config/nvim
ln -sf ~/maptv/setup/ginit.vim ~/.config/nvim/ginit.vim
~/.config/coc/ultisnips/all.snippets: ~/maptv/setup/all.snippets
mkdir -p ~/.config/coc/ultisnips
ln -sf ~/maptv/setup/all.snippets ~/.config/coc/ultisnips/all.snippets
~/.local/share/nvim/undo:
mkdir -p ~/.local/share/nvim/undo
$(PASS):
-brew install pass
~/.zsh/powerlevel10k:
-git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/powerlevel10k
~/.p10k.zsh: ~/maptv/setup/.p10k.zsh
ln -sf ~/maptv/setup/.p10k.zsh ~/.p10k.zsh
$(brew --prefix)/Caskroom/mambaforge/base/envs/py:
conda create -yc conda-forge -n py python=3.8 joblib jupyterlab seaborn numpy pandas scikit-learn scipy
$(shell brew --prefix)/bin/ptpython:
-python -m pip install git+https://github.com/maptv/ptpython
~/Library/ApplicationSupport/ptpython/config.py: ~/maptv/setup/config.py
mkdir -p ~/Library/Application\ Support/ptpython/ ~/Library/ApplicationSupport/ptpython/
-ln -sf ~/maptv/setup/config.py ~/Library/Application\ Support/ptpython/config.py
-ln -sf ~/maptv/setup/config.py ~/Library/ApplicationSupport/ptpython/config.py
$(shell brew --prefix)/bin/radian:
-python -m pip install git+https://github.com/maptv/radian
~/.radian_profile: ~/maptv/setup/.radian_profile
ln -sf ~/maptv/setup/.radian_profile ~/.radian_profile
$(RENAME):
-brew install rename
~/maptv/setup/:
-git clone https://github.com/maptv/setup ~/py4ds/setup
$(RG):
-brew install rg
$(RSTATS):
-brew install --cask r
$(brew --prefix)/Caskroom/mambaforge/base/envs/r:
conda create -yc conda-forge -n r rstudio r-essentials r-tidymodels r-tidyverse
~/.config/rstudio/rstudio-prefs.json: ~/maptv/setup/rstudio-prefs.json
mkdir -p ~/.config/rstudio ~/.config/rstudio/keybindings
ln -sf ~/maptv/setup/rstudio-prefs.json ~/.config/rstudio/rstudio-prefs.json
~/.config/rstudio/keybindings/editor_bindings.json: ~/maptv/setup/editor_bindings.json
ln -sf ~/maptv/setup/editor_bindings.json ~/.config/rstudio/keybindings/editor_bindings.json
~/.config/rstudio/keybindings/rstudio_bindings.json: ~/maptv/setup/rstudio_bindings.json
ln -sf ~/maptv/setup/rstudio_bindings.json ~/.config/rstudio/keybindings/rstudio_bindings.json
$(SCIM):
-brew install sc-im
$(TLDR):
-brew install tldr
$(TMUX):
-brew install tmux
~/.tmux.conf.local: ~/maptv/setup/.tmux.conf.local
ln -sf ~/maptv/setup/.tmux.conf.local ~/.tmux.conf.local
~/.tmux.conf:
curl https://raw.githubusercontent.com/gpakosz/.tmux/master/.tmux.conf -o ~/.tmux.conf
~/.tmux/plugins/tpm:
-git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
$(VIM):
-brew install vim
~/.vimrc: ~/maptv/setup/.vimrc
ln -sf ~/maptv/setup/.vimrc ~/.vimrc
/Applications/Vimac.app:
-brew install --cask vimac
/Applications/VimR.app:
-brew install --cask vimr
/Applications/VSCodium.app:
-brew install --cask vscodium
~/Library/ApplicationSupport/VSCodium/User/settings.json: ~/maptv/setup/settings.json
-ln -sf ~/maptv/setup/settings.json ~/Library/Application\ Support/VSCodium/User/settings.json
-ln -sf ~/maptv/setup/settings.json ~/Library/ApplicationSupport/VSCodium/User/settings.json
~/Library/ApplicationSupport/VSCodium/User/keybindings.json: ~/maptv/setup/keybindings.json
-ln -sf ~/maptv/setup/keybindings.json ~/Library/Application\ Support/VSCodium/User/keybindings.json
-ln -sf ~/maptv/setup/keybindings.json ~/Library/ApplicationSupport/VSCodium/User/keybindings.json
~/.vim/undodir:
mkdir -p ~/.vim/undodir
$(VSCODE_LIVESHARE):
-code --install-extension ms-vsliveshare.vsliveshare --force
$(VSCODE_PYLANCE):
-code --install-extension ms-python.vscode-pylance --force
$(VSCODE_PYTHON):
-code --install-extension ms-python.python --force
$(VSCODE_R):
-code --install-extension ikuyadeu.r --force
$(VSCODE_TABNINE):
-code --install-extension tabnine.tabnine-vscode --force
$(VSCODE_VIM):
-code --install-extension asvetliakov.vscode-neovim --force
$(POPPLER):
-brew install pdftotext
~/.zshrc: ~/maptv/setup/.zshrc
ln -sf ~/maptv/setup/.zshrc ~/.zshrc
~/.zsh/zsh-autosuggestions:
-git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
~/.zsh/zsh-syntax-highlighting:
-git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
clean:
rm ~/.bash_profile ~/.config/bottom/bottom.toml ~/.config/karabiner/karabiner.json ~/.config/nvim/coc-settings.json ~/.config/nvim/init.vim ~/.config/rstudio/keybindings/editor_bindings.json ~/.config/rstudio/keybindings/rstudio_bindings.json ~/.config/rstudio/rstudio-prefs.json ~/.gitconfig ~/.gitignore ~/.ideavimrc ~/.inputrc ~/.ipython/profile_default/ipython_config.py ~/.jupyter/lab/user-settings/@jupyterlab/shortcuts-extension/shortcuts.jupyterlab-settings ~/.p10k.zsh ~/.radian_profile ~/.tmux.conf.local ~/.vim/coc-settings.json ~/.vimrc ~/.zshrc ~/Library/ApplicationSupport/VSCodium/User/keybindings.json ~/Library/ApplicationSupport/VSCodium/User/settings.json ~/Library/ApplicationSupport/ptpython/config.py
.PHONY: bash iterm jetbrains karabiner neovim rstudio tmux vim vscode zsh conda font git ipy repo slate copyq