-
Notifications
You must be signed in to change notification settings - Fork 135
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 1.86 KB
/
Makefile
File metadata and controls
46 lines (36 loc) · 1.86 KB
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
all: sync
sync:
mkdir -p ~/.config/fish
mkdir -p ~/.config/nvim
mkdir -p ~/.config/ghostty
mkdir -p ~/.tmux/
mkdir -p ~/.config/amp
mkdir -p ~/Library/Application\ Support/Cursor/User
[ -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 ~/.tmux.conf ] || ln -s $(PWD)/tmux.conf ~/.tmux.conf
[ -f ~/.tmux/tmux-dark.conf ] || ln -s $(PWD)/tmux-dark.conf ~/.tmux/tmux-dark.conf
[ -f ~/.tmux/tmux-light.conf ] || ln -s $(PWD)/tmux-light.conf ~/.tmux/tmux-light.conf
[ -f ~/Library/Application\ Support/Cursor/User/settings.json ] || ln -s $(PWD)/cursor-settings.json ~/Library/Application\ Support/Cursor/User/settings.json
[ -f ~/Library/Application\ Support/Cursor/User/keybindings.json ] || ln -s $(PWD)/cursor-keybindings.json ~/Library/Application\ Support/Cursor/User/keybindings.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 ~/.tmux.conf
[ ! -L ~/Library/Application\ Support/Cursor/User/settings.json ] || rm -f ~/Library/Application\ Support/Cursor/User/settings.json
[ ! -L ~/Library/Application\ Support/Cursor/User/keybindings.json ] || rm -f ~/Library/Application\ Support/Cursor/User/keybindings.json
.PHONY: all clean sync