install utilities

This commit is contained in:
hophacker 2018-12-31 11:08:07 +08:00
parent ff672290d4
commit 63c8a6efc4

View File

@ -32,6 +32,8 @@ task :install => [:submodule_init, :submodules] do
Rake::Task["install_vundle"].execute Rake::Task["install_vundle"].execute
end end
Rake::Task["install_utilities"].execute
Rake::Task["install_zsh"].execute Rake::Task["install_zsh"].execute
Rake::Task["install_ycm"].execute Rake::Task["install_ycm"].execute
@ -53,6 +55,16 @@ task :install_prezto do
end end
end end
task :install_utilities do
run %{
if [ "$(uname)" = "Darwin" ]; then
brew install git
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
apt install git fc-cache -y
fi
}
end
task :install_zsh do task :install_zsh do
if want_to_install?('zsh') if want_to_install?('zsh')
run %{ run %{