install zsh before intalling ycm

This commit is contained in:
Jie Feng 2017-05-04 23:08:57 +08:00
parent 302631b576
commit 92b63ad882
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ vim/sessions
.netrwhist
bin/subl
tags
.idea

View File

@ -38,6 +38,8 @@ task :install => [:submodule_init, :submodules] do
Rake::Task["install_vundle"].execute
end
Rake::Task["install_zsh"].execute
Rake::Task["install_ycm"].execute
Rake::Task["install_prezto"].execute
@ -57,6 +59,17 @@ task :install_prezto do
end
end
task :install_zsh do
if want_to_install?('zsh')
run %{
which zsh
if [ $? != 0 ]; then
sudo apt install zsh -y
fi
}
end
end
task :install_ycm do
if want_to_install?('YouCompleteMe')
run %{