-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (38 loc) · 1.24 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
CWD = $(shell pwd)
TIMESTAMP = $(shell date +%s)
.PHONY: alacritty nvim tmux scripts starship karabiner
all: nvim tmux alacritty scripts starship karabiner
scripts: backup-scripts
rm -rf ~/.local/scripts
ln -s $(CWD)/scripts ~/.local/scripts
alacritty: backup-alacritty
rm -rf ~/.config/alacritty
ln -s $(CWD)/alacritty ~/.config/alacritty
nvim: backup-nvim
rm -rf ~/.config/nvim
ln -s $(CWD)/nvim ~/.config/nvim
starship:
rm -rf ~/.config/starship
ln -s $(CWD)/starship ~/.config/starship
tmux: backup-tmux
rm -rf ~/.config/tmux
ln -s $(CWD)/tmux ~/.config/tmux
karabiner: backup-karabiner
rm -rf ~/.config/karabiner
ln -s $(CWD)/karabiner ~/.config/karabiner
tpm:
git clone https://github.com/tmux-plugins/tpm ./tmux/plugins/tpm
backup-scripts:
-cp -r ~/.local/scripts ./backups/scripts-backup-$(TIMESTAMP)
backup-nvim:
-cp -r ~/.config/nvim ./backups/nvim-backup-$(TIMESTAMP)
backup-starship:
-cp -r ~/.config/starship ./backups/starship-backup-$(TIMESTAMP)
backup-tmux:
-cp -r ~/.config/tmux ./backups/tmux-backup-$(TIMESTAMP)
backup-alacritty:
-cp -r ~/.config/alacritty ./backups/alacritty-backup-$(TIMESTAMP)
backup-karabiner:
-cp -r ~/.config/karabiner ./backups/karabiner-backup-$(TIMESTAMP)
clean:
-rm -rf backups/*-backup-*