Permalink
Browse files

Set current dir, prepared test to check if bundle directories exists

  • Loading branch information...
1 parent 210790c commit 76d03ca7db423c9d1c125dd86344b0bfd9863c39 Bogdan Girman committed Apr 3, 2012
Showing with 24 additions and 2 deletions.
  1. +24 −2 setup.sh
View
@@ -1,14 +1,36 @@
+setup_dir=`pwd`
+
# Install pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle
wget https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim -O ~/.vim/autoload/pathogen.vim
+# Update all vim's bandels
+cd ~/.vim/bundle
+for bundle in `ls`
+do
+ cd $bundle
+ echo Update $bundle
+ git pull
+ cd ..
+done
+cd $setup_dir
+
# Setup fugitive
cd ~/.vim/bundle
-git clone git://github.com/tpope/vim-fugitive.git
+if ! [ -d "vim-fugitive" ]
+then
+ git clone git://github.com/tpope/vim-fugitive.git
+fi
+cd $setup_dir
# Setup colors-solarized
cd ~/.vim/bundle
-git clone git://github.com/altercation/vim-colors-solarized.git
+if ! [ -d "vim-colors-solarized" ]
+then
+ git clone git://github.com/altercation/vim-colors-solarized.git
+fi
+cd $setup_dir
# Set vimrc
+cd $setup_dir
cp vimrc ~/.vimrc

0 comments on commit 76d03ca

Please sign in to comment.