-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
89 lines (78 loc) · 4.19 KB
/
Copy pathinstall.sh
File metadata and controls
89 lines (78 loc) · 4.19 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
#=======================================
#Environment:Ubuntu_16.04_64
#File:install.sh
#Description:VimSimpleIDE One key installation script. 一键安装脚本
#Author:NoodleZen <noodlezen@sina.com>
#Created:2018.02.08
#Maintainer:NoodleZen <noodlezen@sina.com>
#Version:1.1.1
#Modified:2018.02.09
#=======================================
#记录开始时间
start_time=`date +'%Y-%m-%d %H:%M:%S'`
echo "--------------Install VimSimpleIDE---------------"
echo "----安装VimSimpleIDE 轻量级Python集成开发环境----"
echo "-----------------Version:1.1.1-------------------"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo "------------Install Supporting Tools-------------"
echo "------------------安装支持工具-------------------"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
sudo apt-get install -y vim ctags xclip astyle python-setuptools python-pip python-dev build-essential git curl
#if which apt-get >/dev/null; then
# sudo apt-get install -y vim ctags xclip astyle python-setuptools python-pip python-dev build-essential git curl
#elif which yum >/dev/null; then
# sudo yum install -y gcc vim git ctags xclip astylele python-setuptools python-pip python-dev build-essential git curl
#fi
echo "---------------Upgrade pip Tools-----------------"
echo "-------------------更新pip工具--------------------"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv
echo "----------------Install Autopep8-----------------"
echo "----------------安装Autopep8工具------------------"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
sudo pip install autopep8
echo "----------------Install Pathogen-----------------"
echo "----------------安装Pathogen工具------------------"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
echo "--------------Download .vimrc File---------------"
echo "---------------下载.vimrc配置文件-----------------"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
curl -LSso ~/.vimrc https://raw.githubusercontent.com/noodlezen/VimSimpleIDE/master/vimrc
echo "--------------Install vim Plugins----------------"
echo "--------------------安装插件----------------------"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
cd ~/.vim/
git init
git submodule add https://github.com/ervandew/supertab.git bundle/supertab
git submodule add https://github.com/scrooloose/syntastic.git bundle/syntastic
git submodule add https://github.com/jiangmiao/auto-pairs.git bundle/auto-pairs
git submodule add https://github.com/msanders/snipmate.vim.git bundle/snipmate
git submodule add https://github.com/vim-scripts/The-NERD-tree.git bundle/nerdtree
git submodule add https://github.com/fholgado/minibufexpl.vim.git bundle/minibufexpl
git submodule add https://github.com/mbbill/undotree.git bundle/undotree
git submodule add https://github.com/vim-scripts/taglist.vim.git bundle/taglist
git submodule add https://github.com/bling/vim-airline.git bundle/vim-airline
git submodule add https://github.com/altercation/vim-colors-solarized.git bundle/vim-colors-solarized
git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive
vim -u NONE -c "helptags vim-fugitive/doc" -c q
git submodule add https://github.com/davidhalter/jedi-vim.git bundle/jedi-vim
git submodule add https://github.com/Yggdroot/indentLine.git bundle/indentLine
git submodule add https://github.com/tell-k/vim-autopep8.git bundle/vim-autopep8
git submodule add https://github.com/scrooloose/nerdcommenter.git bundle/nerdcommenter
cp -a bundle/nerdcommenter/{plugin,doc} ~/.vim/
git submodule init
git submodule update
git submodule foreach git submodule init
git submodule foreach git submodule update
#计算时间花费
end_time=`date +'%Y-%m-%d %H:%M:%S'`
start_seconds=$(date --date="$start_time" +%s);
end_seconds=$(date --date="$end_time" +%s);
echo "---------------------Done!-----------------------"
echo "-------------------安装完毕----------------------"
echo "本次安装花费时间:"$((end_seconds-start_seconds))"s"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"