forked from alexwelch/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·72 lines (63 loc) · 1.49 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
70
71
#!/bin/sh
default_bundles=(
ack.vim
browser-refresh.vim
bufkill.vim
delimitMate
gist-vim
gundo
indexed-search.vim
jade.vim
json.vim
lustyjuggler
markdown-preview.vim
nerdcommenter
nerdtree
snipmate.vim
statusline
supertab
syntastic
tabular
taglist.vim
vcscommand.vim
vim-coffee-script
vim-cucumber
vim-fugitive
vim-haml
vim-javascript
vim-markdown
vim-rails
vim-repeat
vim-ruby
vim-rvm
vim-stylus
vim-surround
vim-unimpaired
YankRing.vim
)
full_path=`pwd`
echo "Creating directories..."
mkdir -p $full_path/home/.vim/bundle
mkdir -p $full_path/home/.vim/snippets
mkdir -p $full_path/home/.vim/tmp/swap
mkdir -p $full_path/home/.vim/tmp/yankring
mkdir -p $full_path/home/.vim/spell
echo "Initializing submodules..."
git submodule init
git submodule update
git submodule foreach git checkout master
git submodule foreach git clean -f
echo "Symlinking default bundles..."
for i in "${default_bundles[@]}"; do
ln -sv $full_path/home/.vim/bundle_storage/$i $full_path/home/.vim/bundle/$i
done
echo "Symlinking default snippets..."
for f in `ls $full_path/home/.vim/snippets_storage/`; do
ln -sv $full_path/home/.vim/snippets_storage/$f $full_path/home/.vim/snippets/$f
done
# Make an additional symlink of css for scss
ln -sv $full_path/home/.vim/snippets_storage/css.snippets $full_path/home/.vim/snippets/scss.snippets
echo "Symlinking to home directory, dot files -A"
for f in `ls -A $full_path/home/`; do
ln -sv $full_path/home/$f $HOME/$f
done