forked from fatih/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 919 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 919 Bytes
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
all: sync
sync:
mkdir -p ~/.config/alacritty
[ -f ~/.config/alacritty/alacritty.yml ] || ln -s $(PWD)/alacritty.yml ~/.config/alacritty/alacritty.yml
[ -f ~/.vimrc ] || ln -s $(PWD)/vimrc ~/.vimrc
[ -f ~/.bashrc ] || ln -s $(PWD)/bashrc ~/.bashrc
[ -f ~/.zshrc ] || ln -s $(PWD)/zshrc ~/.zshrc
[ -f ~/.tmux.conf ] || ln -s $(PWD)/tmuxconf ~/.tmux.conf
[ -f ~/.tigrc ] || ln -s $(PWD)/tigrc ~/.tigrc
[ -f ~/.git-prompt.sh ] || ln -s $(PWD)/git-prompt.sh ~/.git-prompt.sh
[ -f ~/.gitconfig ] || ln -s $(PWD)/gitconfig ~/.gitconfig
[ -f ~/.agignore ] || ln -s $(PWD)/agignore ~/.agignore
# don't show last login message
touch ~/.hushlogin
clean:
rm -f ~/.vimrc
rm -f ~/.config/nvim/init.vim
rm -f ~/.config/alacritty/alacritty.yml
rm -f ~/.bashrc
rm -f ~/.zshrc
rm -f ~/.tmux.conf
rm -f ~/.tigrc
rm -f ~/.git-prompt.sh
rm -f ~/.gitconfig
rm -f ~/.agignore
.PHONY: all clean sync build run kill