-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimwreck.sh
37 lines (27 loc) · 847 Bytes
/
vimwreck.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
source './homebrew.sh'
function install_vimwreck {
install_or_upgrade_package git
install_or_upgrade_package ctags
current_dir="$PWD"
if [ -d $HOME/.vim/.git ]; then
cd $HOME/.vim && git pull
else
git clone https://github.com/jfelchner/vim.git $HOME/.vim
fi
rm $HOME/.vimrc 2> /dev/null
rm $HOME/.gvimrc 2> /dev/null
ln -s $HOME/.vim/vimrc $HOME/.vimrc
ln -s $HOME/.vim/gvimrc $HOME/.gvimrc
mkdir -p $HOME/.vim/bundle/vundle 2> /dev/null
if [ -d $HOME/.vim/bundle/vundle/.git ]; then
cd $HOME/.vim/bundle/vundle && git pull
else
git clone http://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle
fi
switch_shell="$SHELL"
export SHELL=/bin/sh
eval vim +BundleInstall +BundleClean +qall
export SHELL="$switch_shell"
cp $HOME/.vim/fonts/* $HOME/Library/Fonts/
cd "$current_dir"
}