install ycm after installed

This commit is contained in:
Jie Feng 2017-03-12 15:58:58 +08:00
parent 8dc8fbb97d
commit d2599fa18a

View File

@ -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?