From d2599fa18afa92c88e3e5edcc982aba9917b4e81 Mon Sep 17 00:00:00 2001 From: Jie Feng Date: Sun, 12 Mar 2017 15:58:58 +0800 Subject: [PATCH] install ycm after installed --- Rakefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index e7032ad..676dbc1 100644 --- a/Rakefile +++ b/Rakefile @@ -2,10 +2,6 @@ require 'rake' require 'fileutils' require File.join(File.dirname(__FILE__), 'bin', 'yadr', 'vundle') -task :try do - puts RUBY_PLATFORM -end - desc "Hook our dotfiles into system-standard positions." task :install => [:submodule_init, :submodules] do puts @@ -29,6 +25,8 @@ task :install => [:submodule_init, :submodules] do Rake::Task["install_vundle"].execute end + Rake::Task["install_ycm"].execute + Rake::Task["install_prezto"].execute install_fonts @@ -46,6 +44,15 @@ task :install_prezto do end end +task :install_ycm do + if want_to_install?('YouCompleteMe') + run %{ + cd $HOME/.vim/bundle/YouCompleteMe/ + ./install.sh + } + end +end + desc 'Updates the installation' task :update do Rake::Task["vundle_migration"].execute if needs_migration_to_vundle?