aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 45e0bed3828e59df9f004a7e27d15b50357e60ac (plain)
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
all: alias vim git tig

alias:
	rm -f ~/.bash_aliases
	ln -s `pwd`/alias ~/.bash_aliases

vim:
	# amix-vimrc
	if [ ! -d "$(HOME)/.vim_runtime" ]; then \
        git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime && \
        sh ~/.vim_runtime/install_awesome_vimrc.sh; \
	fi
	# vim-plug
	curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
	
	rm -f ~/.vim_runtime/my_configs.vim
	ln -s `pwd`/vimrc ~/.vim_runtime/my_configs.vim

wiki:
	# vimwiki
	if [ ! -d "$(HOME)/.vimwiki" ]; then \
        git clone --depth=1 https://github.com/typebrook/wiki.git ~/.vimwiki && \
	fi

git:
	rm -f ~/.gitconfig
	ln -s `pwd`/gitconfig ~/.gitconfig

tig:
	rm -f ~/.tigrc
	ln -s `pwd`/tigrc ~/.tigrc

push:
	git commit -am "update"
	git push