forked from jasoncodes/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·41 lines (36 loc) · 754 Bytes
/
install.sh
File metadata and controls
executable file
·41 lines (36 loc) · 754 Bytes
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
#!/bin/bash
if [ -d ~/.vim ]
then
if type -t git-up > /dev/null
then
(cd ~/.vim && git-up)
else
(cd ~/.vim && git pull --rebase)
fi
else
git clone git://github.com/jasoncodes/vimfiles.git ~/.vim
fi
if ! [ -d ~/.vim/bundle/vundle ]
then
git clone git://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
fi
ln -sf .vim/vimrc ~/.vimrc
ln -sf .vim/gvimrc ~/.gvimrc
mkdir -p ~/.vim/.{backup,undo}
vim -N -u ~/.vimrc -s <(cat <<-EOF
:set buftype=nofile
iRun \`:qa\` to finish install when bundle completes.
:BundleClean!
:BundleInstall!
EOF
)
(
builtin cd ~/.vim/bundle/Command-T/ruby/command-t
if [[ -n "$rvm_path" ]]
then
rvm system
fi
export PATH=/usr/bin:/bin:/usr/local/bin
ruby extconf.rb
make clean && make
)