-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto_install.sh
executable file
·47 lines (40 loc) · 1.19 KB
/
auto_install.sh
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
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
#---Generated from template 'sh' wrote by @aliben---
# @Copyright (C) 2018 All rights reserved.
# @file: auto_install.sh
# @author: aliben.develop@gmail.com
# @created_date: 2018-11-20 21:08:35
# @last_modified_date: 2020-04-04 23:45:28
# @brief: TODO
# @details: TODO
#---***********************************************---
#---Variables
CREATED_TIME=`date '+%Y-%m-%d %H:%M:%S'`
CREATED_YEAR=`date '+%Y'`
#---Shell Command
#brew install vim --with-python --with-ruby --with-perl --with-features=huge --with-lua
set -x
if [ -f "$HOME/.vimrc" ]; then
mv $HOME/.vimrc $HOME/.vimrc_old
fi
if [ -d "$HOME/.vim" ]; then
mv $HOME/.vim $HOME/.vim_old
fi
if [ -L "$HOME/.vim" ]; then
mv $HOME/.vim $HOME/.vim_old
fi
if [ -f "$HOME/.vim" ]; then
mv $HOME/.vim $HOME/.vim_old
fi
if [ -L "$HOME/.vimrc" ]; then
mv $HOME/.vimrc $HOME/.vimrc_old
fi
ln -s $SETTING_PATH/vim/.vimrc8 $HOME/.vimrc
ln -s $SETTING_PATH/vim $HOME/.vim
vim +PlugInstall +qall
git submodule foreach --recursive git submodule init
git submodule foreach --recursive git submodule update
cd bundle/YouCompleteMe/ && git submodule update --init --recursive
cd ~/.vim
python3 ./bundle/YouCompleteMe/install.py --clang-completer
set +x