-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
68 lines (53 loc) · 1.58 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
all: vim bash zsh tmux gitconfig
@echo "Configuration installed"
init:
git submodule init
# install colors, they are used by the shells
@mkdir -p ~/.config
@rm -rf ~/.config/base16-shell
ln -sf $(CURDIR)/base16-colors ~/.config/base16-shell
gitconfig-clean:
rm -f ~/.gitconfig
gitconfig: gitconfig-clean
ln -sf $(CURDIR)/gitconfig ~/.gitconfig
nvim-clean:
rm -rf ~/.config/nvim
.PHONY: nvim
nvim:
@mkdir -p ~/.config/nvim
ln -s $(CURDIR)/nvim/init.vim ~/.config/nvim/init.vim
ln -s $(CURDIR)/nvim/autoload ~/.config/nvim/autoload
vim-clean:
rm -f ~/.vimrc
rm -Rf ~/.vim
vim: init vim-clean
ln -sf $(CURDIR)/vimrc ~/.vimrc
echo "Vim config liked, installing plugins..."
matplotlib:
@mkdir -p ~/.config/matplotlib
@rm -f ~/.config/matplotlib/matplotlibrc
ln -s $(CURDIR)/matplotlibrc ~/.config/matplotlib/matplotlibrc
bash-clean:
rm -f ~/.bashrc
rm -f ~/.profile
bash: init bash-clean
@mkdir -p ~/.bashrc.d
ln -s $(CURDIR)/bashrc ~/.bashrc
ln -s $(CURDIR)/profile ~/.profile
zsh-clean:
rm -f ~/.zshrc
rm -f ~/.zsh.d
rm -f ~/.oh-my-zsh
zsh: init zsh-clean
ln -s $(CURDIR)/zshrc ~/.zshrc
ln -s $(CURDIR)/zsh.d ~/.zsh.d
ln -s $(CURDIR)/oh-my-zsh ~/.oh-my-zsh
tmux-clean:
rm -f ~/.tmux.conf
tmux: tmux-clean
ln -s $(CURDIR)/tmux.conf ~/.tmux.conf
vscode:
mkdir -p $(HOME)/Library/Application\ Support/Code/User
ln -s VSCode/settings.json $(HOME)/Library/Application\ Support/Code/User/settings.json
ln -s VSCode/keybindings.json $(HOME)/Library/Application\ Support/Code/User/keybindings.json
ln -s VSCode/snippets $(HOME)/Library/Application\ Support/Code/User/snippets