-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (42 loc) · 2.18 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
all: sync
sync:
mkdir -p ~/.config/glow
mkdir -p ~/.config/k9s/skins
[ -f ~/.config/glow/glow.yml ] || ln -s $(PWD)/glow.yml ~/.config/glow/glow.yml
[ -f ~/.config/k9s/config.yaml ] || ln -s $(PWD)/config/k9s/config.yaml ~/.config/k9s/config.yaml
[ -f ~/.config/k9s/skins/transparent.yaml ] || ln -s $(PWD)/config/k9s/skins/transparent.yaml ~/.config/k9s/skins/transparent.yaml
[ -e ~/.config/nvim ] || ln -s $(PWD)/config/nvim ~/.config/nvim
[ -f ~/.config/starship.toml ] || ln -s $(PWD)/config/starship.toml ~/.config/starship.toml
[ -f ~/.config/starship.toml ] || ln -s $(PWD)/config/starship.toml ~/.config/starship.toml
[ -e ~/.config/ghostty ] || ln -s $(PWD)/config/ghostty ~/.config/ghostty
[ -e ~/.config/wezterm ] || ln -s $(PWD)/config/wezterm ~/.config/wezterm
[ -f ~/.digrc ] || ln -s $(PWD)/digrc ~/.digrc
[ -f ~/.ideavimrc ] || ln -s $(PWD)/ideavimrc ~/.ideavimrc
[ -f ~/.inputrc ] || ln -s $(PWD)/inputrc ~/.inputrc
[ -f ~/.tmux.conf ] || ln -s $(PWD)/tmux.conf ~/.tmux.conf
[ -f ~/.zprofile ] || ln -s $(PWD)/zprofile ~/.zprofile
[ -f ~/.zshrc ] || ln -s $(PWD)/zshrc ~/.zshrc
sync-mac:
mkdir -p ~/.iterm
mkdir -p ~/Library/Preferences/glow
[ -f ~/.iterm/com.googlecode.iterm2.plist ] || ln -s $(PWD)/iterm/com.googlecode.iterm2.plist ~/.iterm/com.googlecode.iterm2.plist
[ -f ~/Library/Application\ Support/Code/User/settings.json ] || ln -s $(PWD)/settings.json ~/Library/Application\ Support/Code/User/settings.json
[ -f ~/Library/Preferences/glow/glow.yml ] || ln -s $(PWD)/glow.yml ~/Library/Preferences/glow/glow.yml
clean:
unlink ~/.config/glow/glow.yml || true
unlink ~/.config/k9s/config.yaml || true
unlink ~/.config/k9s/skins/transparent.yaml || true
unlink ~/.config/starship.toml || true
unlink ~/.digrc || true
unlink ~/.ideavimrc || true
unlink ~/.inputrc || true
unlink ~/.iterm/com.googlecode.iterm2.plist || true
unlink ~/.tmux.conf || true
unlink ~/.zprofile || true
unlink ~/.zshrc || true
unlink ~/Library/Application\ Support/Code/User/settings.json || true
unlink ~/Library/Preferences/glow/glow.yml || true
unlink ~/.config/nvim || true
unlink ~/.config/ghostty || true
unlink ~/.config/wezterm || true
.PHONY: all clean sync sync-mac build run kill