forked from stamp/super-dot-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·57 lines (44 loc) · 1.23 KB
/
install
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
#!/bin/bash
echo "Git pull"
git pull
echo "Git submodule init"
git submodule init
echo "Git submodule update"
git submodule update
git submodule foreach git pull origin master
echo "Setting up bashrc (copied from jonaz ^^)"
grep -q ". $PWD/bashrc" ~/.bashrc || echo ". $PWD/bashrc" >> ~/.bashrc
echo "Setting up dir_colors"
if [ ! -L ~/.dir_colors ]; then
ln -s $PWD/dir_colors ~/.dir_colors
fi
if [ ! -L ~/.phpmd-ruleset.xml ]; then
echo "Setting up phpmd xml ruleset"
ln -s $PWD/phpmd-ruleset.xml ~/.phpmd-ruleset.xml
fi
if [ $1="force" ]; then
echo "FORCE remove prev vim config"
rm -r ~/.vim -rf
rm -r ~/.vimrc -rf
rm -r ~/.vimrc-custom -rf
fi
if [ ! -d ~/.vim/bundle/ ]; then
mkdir -p ~/.vim/bundle
fi
if [ ! -d ~/.vim/bundle/vundle ]; then
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
fi
if [ ! -L ~/.vimrc-custom ]; then
echo "Creating symbolic link ~/.vimrc-custom to $PWD/vimrc-custom"
ln -s $PWD/vimrc-custom ~/.vimrc-custom
fi
if [ ! -L ~/.vimrc ]; then
echo "Creating symbolic link ~/.vimrc to $PWD/vimrc"
ln -s $PWD/vimrc ~/.vimrc
fi
echo "Installing plugins into vim"
vim -c 'PluginInstall' -c 'qa!'
echo "all Done!"
~/.vim/bundle/YouCompleteMe/install.sh
#cd dot-vim
#./install