-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·69 lines (56 loc) · 1.57 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
#installs the vim folder ti the users home directory
EXUBERANT_CTAGS='http://downloads.sourceforge.net/project/ctags/ctags/5.8/ctags-5.8.tar.gz?r=http%3A%2F%2Fctags.sourceforge.net%2F&ts=1351905047&use_mirror=heanet'
echo "This will overwrite any existing vim settings"
echo "Continue? (Y/n)"
read con
if [ "$con" == "Y" ]; then
#copy .vim directory
if [ -d ~/.vim ]; then
rm -rf ~/.vim
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
ln -snf $DIR/.vim ~/.vim
#link to .vimrc file
if [ -f ~/.vimrc ]; then
rm ~/.vimrc
fi
ln -snf ~/.vim/.vimrc ~/.vimrc
#install Vundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
vim +BundleInstall +qall
echo "Would you like to install pyflakes (python sytax checker)"
echo "(Y/n)"
read con
if [ "$con" == "Y" ]; then
echo "Installing pyflakes"
cd ~/.vim/bundle/pyflakes/
sudo python setup.py install
sudo rm -rf ~/.vim/bundle/pyflakes/build
fi
echo "Would you like to install jslint (javascript sytax checker)"
echo "(Y/n)"
read con
if [ "$con" == "Y" ]; then
echo "Installing jslint"
cd $DIR
svn co https://javascriptlint.svn.sourceforge.net/svnroot/javascriptlint/trunk jsl
cd jsl
sudo python setup.py install
sudo rm -rf jsl
fi
echo "Would you like to install exuberant-ctags (used by the tagbar plugin)"
echo "(Y/n)"
read con
if [ "$con" == "Y" ]; then
wget -O ctags.tar.gz $EXUBERANT_CTAGS
tar -zxvf ctags.tar.gz
cd ctags-5.8
./configure
make && sudo make install
cd ..
rm -rf ctags.tar.gz ctags-5.8
fi
fi
mkdir -p ~/.vim/backups