forked from letharion/letharion-dot-files
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall
More file actions
executable file
·64 lines (50 loc) · 1.43 KB
/
Copy pathinstall
File metadata and controls
executable file
·64 lines (50 loc) · 1.43 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
#!/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
if [ ! -d ~/.fzf ]; then
git clone https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
fi
echo "Installing plugins into vim"
vim -c 'PluginInstall' -c 'qa!'
echo "all Done!"
echo "sudo apt-get install build-essential python-dev"
echo "~/.vim/bundle/YouCompleteMe/install.sh"
~/.vim/bundle/YouCompleteMe/install.sh
#cd dot-vim
#./install