Permalink
Browse files

Automatically initialize all bundles on rake vundle

  • Loading branch information...
1 parent e18c7b2 commit cf5d100a38adf2ed5d2f6bc78febd85a2da9050d @Mange committed Mar 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
View
@@ -59,7 +59,11 @@ end
desc "Installs Vundle"
task :vundle do
unless File.exist?('vim/bundle/vundle')
- unless system('git clone -q git://github.com/gmarik/vundle.git vim/bundle/vundle')
+ if system('git clone -q git://github.com/gmarik/vundle.git vim/bundle/vundle')
+ unless system('vim -c ":BundleInstall" -c ":qa"')
+ STDERR.puts "Could not automatically install vim bundles. Continuing..."
+ end
+ else
STDERR.puts "Could not clone Vundle. Continuing..."
end
end

0 comments on commit cf5d100

Please sign in to comment.