-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 992 Bytes
/
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
all:
@echo possible targets: ssh screen vim tmux zsh and install ('install' installs everything)
install: ssh screen vim nvim zsh tmux git
ssh:
install -d -m 0755 ${HOME}/.ssh
install -b -m 0644 .ssh/config ${HOME}/.ssh/config
screen:
install -b -m 0644 .screenrc ${HOME}/.screenrc
vim:
rsync -a .vim ${HOME}
install -b -m 0644 .vimrc ${HOME}/.vimrc
nvim:
mkdir -p ${HOME}/.config
ln -sf ${HOME}/.vim ${HOME}/.config/nvim
ln -sf ${HOME}/.vimrc ${HOME}/.config/nvim/init.vim
zsh:
install -b -m 0644 .zshrc ${HOME}/.zshrc
install -b -m 0644 .zprofile ${HOME}/.zprofile
rm ${HOME}/.zcompdump* 2> /dev/null || exit 0
zsh -c 'zcompile ${HOME}/.zshrc' 2> /dev/null || exit 0
zsh -c 'zcompile ${HOME}/.zprofile' 2> /dev/null || exit 0
zsh -c 'zcompile ${HOME}/.zshrc.local' 2> /dev/null || exit 0
zsh -c 'zcompile ${HOME}/.zprofile.local' 2> /dev/null || exit 0
git:
install -b -m 0644 .gitconfig ${HOME}/.gitconfig
tmux:
install -b -m 0644 .tmux.conf ${HOME}/.tmux.conf