diff options
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,8 +1,9 @@ | |||
1 | all: apply-alias apply-vim apply-tig | 1 | all: apply-alias apply-vim apply-git apply-tig |
2 | 2 | ||
3 | apply-alias: | 3 | apply-alias: |
4 | rm -f ~/.bash_aliases | 4 | rm -f ~/.bash_aliases |
5 | ln -s `pwd`/alias ~/.bash_aliases | 5 | ln -s `pwd`/alias ~/.bash_aliases |
6 | |||
6 | apply-vim: | 7 | apply-vim: |
7 | if [ ! -d "~/.vim_runtime" ]; then \ | 8 | if [ ! -d "~/.vim_runtime" ]; then \ |
8 | git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime && \ | 9 | git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime && \ |
@@ -10,9 +11,15 @@ apply-vim: | |||
10 | fi | 11 | fi |
11 | rm -f ~/.vim_runtime/my_configs.vim | 12 | rm -f ~/.vim_runtime/my_configs.vim |
12 | ln -s `pwd`/vimrc ~/.vim_runtime/my_configs.vim | 13 | ln -s `pwd`/vimrc ~/.vim_runtime/my_configs.vim |
14 | |||
15 | apply-git: | ||
16 | rm -f ~/.gitconfig | ||
17 | ln -s `pwd`/gitconfig ~/.gitconfig | ||
18 | |||
13 | apply-tig: | 19 | apply-tig: |
14 | rm -f ~/.tigrc | 20 | rm -f ~/.tigrc |
15 | ln -s `pwd`/tigrc ~/.tigrc | 21 | ln -s `pwd`/tigrc ~/.tigrc |
22 | |||
16 | push: | 23 | push: |
17 | git commit -am "update" | 24 | git commit -am "update" |
18 | git push | 25 | git push |