diff options
| author | typebrook <typebrook@gmail.com> | 2019-01-22 00:03:03 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-01-22 00:03:03 +0800 |
| commit | 65bfd3bed1d4514f28558726b34bdb091255b944 (patch) | |
| tree | d194505f8b9c404564bf3d024812a7551bf99023 /Makefile | |
| parent | 0be3a54e99767172a567523b7898f1eb75135ff5 (diff) | |
update
Diffstat (limited to 'Makefile')
| -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 |