-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
29 lines (27 loc) · 1.82 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
VSCODECFGDIR := $(HOME)/Library/Application\ Support/Code/User
DOTFILES_ROOT := $(HOME)/src/github.com/curiouslychase/dotfiles
CURSORSCFGDIR := $(HOME)/Library/Application\ Support/Cursor/User
init:
test -L $(HOME)/.zshrc || ln -s $(PWD)/zsh/zshrc.zsh $(HOME)/.zshrc
test -L $(HOME)/.config/nvim || ln -s $(PWD)/nvim $(HOME)/.config/nvim
test -L $(HOME)/.config/kitty || ln -s $(PWD)/kitty $(HOME)/.config/kitty
test -d $(HOME)/.hammerspoon || ln -s $(PWD)/hammerspoon $(HOME)/.hammerspoon
test -L $(VSCODECFGDIR)/settings.json || ln -s $(PWD)/vscode/settings.json $(VSCODECFGDIR)/settings.json
test -L $(VSCODECFGDIR)/keybindings.json || ln -s $(PWD)/vscode/keybindings.json $(VSCODECFGDIR)/keybindings.json
test -L $(VSCODECFGDIR)/projects.json || ln -s $(PWD)/vscode/projects.json $(VSCODECFGDIR)/projects.json
test -L $(CURSORSCFGDIR)/settings.json || ln -s $(PWD)/vscode/settings.json $(CURSORSCFGDIR)/settings.json
test -L $(CURSORSCFGDIR)/keybindings.json || ln -s $(PWD)/vscode/keybindings.json $(CURSORSCFGDIR)/keybindings.json
test -L $(CURSORSCFGDIR)/projects.json || ln -s $(PWD)/vscode/projects.json $(CURSORSCFGDIR)/projects.json
test -L $(HOME)/.ssh/config_common || ln -s $(PWD)/ssh/config_common $(HOME)/.ssh/config_common
test -L $(HOME)/.gitconfig || ln -s $(PWD)/gitconfig $(HOME)/.gitconfig
test -d $(HOME)/.emacs.d || ln -s $(PWD)/emacs.d $(HOME)/.emacs.d
clean:
rm -rf $(HOME)/.zshrc
rm -rf $(HOME)/.hammerspoon
rm -rf $(VSCODECFGDIR)/projects.json $(VSCODECFGDIR)/keybindings.json $(VSCODECFGDIR)/settings.json $(VSCODECFGDIR)/snippets
rm -rf $(CURSORSCFGDIR)/projects.json $(CURSORSCFGDIR)/keybindings.json $(CURSORSCFGDIR)/settings.json $(CURSORSCFGDIR)/snippets
rm -rf $(HOME)/.ssh/config_common
rm -rf $(HOME)/.gitconfig
rm -rf $(HOME)/.emacs.d
rm -rf $(HOME)/.config/nvim/lua/custom
rm -rf $(HOME)/.config/kitty