-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (28 loc) · 961 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
.PHONY: bash tmux vim git qute
all: .PHONY
DOTFILES := $(shell pwd)
bash:
ln -fs ${DOTFILES}/bash/alias ${HOME}/.alias
ln -fns $(DOTFILES)/etc/ ${HOME}/etc
ln -fs $(DOTFILES)/bash/bashrc ${HOME}/.bashrc
ln -fs $(DOTFILES)/bash/bash_profile ${HOME}/.bash_profile
$(DOTFILES)/bash/install_fzf.sh
tmux:
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm || true
ln -fs $(DOTFILES)/tmux/tmux.conf ${HOME}/.tmux.conf
vim:
mkdir -p ${HOME}/.vim/pack/plugins/start/
mkdir -p ${HOME}/.vim/swap
mkdir -p ${HOME}/.vim/backup
mkdir -p ${HOME}/.vim/undodir
cp -r $(DOTFILES)/vim/colors ${HOME}/.vim/
ln -fs $(DOTFILES)/vim/vimrc ${HOME}/.vimrc
$(DOTFILES)/vim/setup_plugins.sh $(DOTFILES)/vim/plugins.txt
git:
ln -fs $(DOTFILES)/git/gitconfig ${HOME}/.gitconfig
ln -fs $(DOTFILES)/git/gitcommit ${HOME}/.gitcommit
ln -fs $(DOTFILES)/git/gitignore ${HOME}/.gitignore
brew:
ifeq ($(shell uname -s),Darwin)
brew install fzf fd ripgrep
endif