-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (61 loc) · 1.88 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
.PHONY: apply-all
apply-all: apply-zshrc apply-nvim apply-tmux apply-functions apply-fzf apply-path-exports apply-aliases apply-starship apply-wezterm apply-zellij
.PHONY: apply-zshrc
apply-zshrc:
@echo "Applying .zshrc"
-@rm $(HOME)/.zshrc
@ln -s $(PWD)/.zshrc $(HOME)/.zshrc
.PHONY: apply-nvim
apply-nvim:
@echo "Applying nvim"
-@rm -rf $(HOME)/.config/nvim
@ln -s $(PWD)/nvim $(HOME)/.config/
.PHONY: apply-wezterm
apply-wezterm:
@echo "Applying wezterm config"
-@rm -rf $(HOME)/.config/wezterm
@ln -s $(PWD)/wezterm $(HOME)/.config/
.PHONY: apply-zellij
apply-zellij:
@echo "Applying zellij"
-@rm -rf $(HOME)/.config/zellij
@ln -s $(PWD)/zellij $(HOME)/.config/
.PHONY: apply-tmux
apply-tmux:
@echo "Applying .tmux.conf"
-@rm $(HOME)/.tmux.conf && ln -s $(PWD)/.tmux.conf $(HOME)/.tmux.conf
@echo "Applying .tmux.conf.local"
-@rm $(HOME)/.tmux.conf.local && ln -s $(PWD)/.tmux.conf.local $(HOME)/.tmux.conf.local
.PHONY: create-envs
create-envs:
@echo "Creating .envs.zsh"
@cp $(PWD)/.envs.zsh $(HOME)/.envs.zsh
.PHONY: apply-functions
apply-functions:
@echo "Applying .functions.zsh"
-@rm $(HOME)/.functions.zsh
@ln -s $(PWD)/.functions.zsh $(HOME)/.functions.zsh
.PHONY: apply-fzf
apply-fzf:
@echo "Applying .fzf.zsh"
-@rm $(HOME)/.fzf.zsh
@ln -s $(PWD)/.fzf.zsh $(HOME)/.fzf.zsh
.PHONY: apply-path-exports
apply-path-exports:
@echo "Applying .path-exports.zsh"
-@rm $(HOME)/.path-exports.zsh
@ln -s $(PWD)/.path-exports.zsh $(HOME)/.path-exports.zsh
.PHONY: apply-aliases
apply-aliases:
@echo "Applying .aliases.zsh"
-@rm $(HOME)/.aliases.zsh
@ln -s $(PWD)/.aliases.zsh $(HOME)/.aliases.zsh
.PHONY: apply-starship
apply-starship:
@echo "Applying .starship.toml"
-@rm $(HOME)/.config/starship.toml
@ln -s $(PWD)/starship.toml $(HOME)/.config/starship.toml
.PHONY: create-gitconfig
create-gitconfig:
@echo "Creating .gitconfig"
@cp $(PWD)/.gitconfig $(HOME)/.gitconfig