-
Notifications
You must be signed in to change notification settings - Fork 142
/
Makefile
37 lines (31 loc) · 1.29 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
all: sync
sync:
mkdir -p ~/.config/fish
mkdir -p ~/.config/nvim
mkdir -p ~/.config/ghosty
[ -f ~/.config/fish/config.fish ] || ln -s $(PWD)/config.fish ~/.config/fish/config.fish
[ -d ~/.config/fish/functions/ ] || ln -s $(PWD)/fish/functions ~/.config/fish/functions
[ -f ~/.vimrc ] || ln -s $(PWD)/vimrc ~/.vimrc
[ -f ~/.config/nvim/init.lua ] || ln -s $(PWD)/init.lua ~/.config/nvim/init.lua
[ -f ~/.tigrc ] || ln -s $(PWD)/tigrc ~/.tigrc
[ -f ~/.gitconfig ] || ln -s $(PWD)/gitconfig ~/.gitconfig
[ -f ~/.agignore ] || ln -s $(PWD)/agignore ~/.agignore
[ -f ~/.config/ghostty/config ] || ln -s $(PWD)/ghostty.config ~/.config/ghostty/config
[ -f ~/.config/zed/settings.json ] || ln -s $(PWD)/zed-config.json ~/.config/zed/settings.json
[ -f ~/.config/zed/keymap.json ] || ln -s $(PWD)/zed-keymap.json ~/.config/zed/keymap.json
[ -f ~/.config/zed/tasks.json ] || ln -s $(PWD)/zed-tasks.json ~/.config/zed/tasks.json
# don't show last login message
touch ~/.hushlogin
clean:
rm -f ~/.vimrc
rm -f ~/.config/nvim/init.lua
rm -f ~/.config/fish/config.fish
rm -rf ~/.config/fish/functions/
rm -f ~/.tigrc
rm -f ~/.gitconfig
rm -f ~/.agignore
rm -f ~/.config/ghostty/config
rm -f ~/.config/zed/settings.json
rm -f ~/.config/zed/keymap.json
rm -f ~/.config/zed/tasks.json
.PHONY: all clean sync