-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (28 loc) · 1.27 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
all: sync
sync:
mkdir -p ~/.config/kitty
mkdir -p ~/.config/fish
mkdir -p ~/.config/nvim
mkdir -p ~/.config/fd
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
[ -f ~/.config/kitty/kitty.conf ] || ln -s $(PWD)/config/kitty/kitty.conf ~/.config/kitty/kitty.conf
[ -d ~/.config/kitty/themes/ ] || ln -s $(PWD)/config/kitty/themes ~/.config/kitty/themes
[ -f ~/.config/fish/config.fish ] || ln -s $(PWD)/config/fish/config.fish ~/.config/fish/config.fish
[ -d ~/.config/fish/functions/ ] || ln -s $(PWD)/config/fish/functions ~/.config/fish/functions
[ -d ~/.config/fish/completions/ ] || ln -s $(PWD)/config/fish/completions ~/.config/fish/completions
[ -f ~/.config/nvim/init.lua ] || ln -s $(PWD)/config/nvim/init.lua ~/.config/nvim/init.lua
[ -f ~/.config/fd/ignore ] || ln -s $(PWD)/config/fd/ignore ~/.config/fd/ignore
[ -f ~/.tmux.conf ] || ln -s $(PWD)/config/tmux/tmux.conf ~/.tmux.conf
[ -d ~/.tmux/themes/ ] || ln -s $(PWD)/config/tmux/themes ~/.tmux/themes
@echo 'Completed!'
clean:
rm -rf ~/.config/kitty/kitty.conf
rm -rf ~/.config/kitty/themes
rm -rf ~/.config/fish/config.fish
rm -rf ~/.config/fish/functions
rm -rf ~/.config/fish/completions
rm -rf ~/.config/nvim
rm -rf ~/.config/fd
rm -rf ~/.tmux.conf
rm -rf ~/.tmux
.PHONY: all clean sync