From 63c8a6efc42bf7fff4174d65dbfb8d684f903e09 Mon Sep 17 00:00:00 2001 From: hophacker Date: Mon, 31 Dec 2018 11:08:07 +0800 Subject: [PATCH] install utilities --- Rakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Rakefile b/Rakefile index 26678c8..51da67d 100644 --- a/Rakefile +++ b/Rakefile @@ -32,6 +32,8 @@ task :install => [:submodule_init, :submodules] do Rake::Task["install_vundle"].execute end + Rake::Task["install_utilities"].execute + Rake::Task["install_zsh"].execute Rake::Task["install_ycm"].execute @@ -53,6 +55,16 @@ task :install_prezto do 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 if want_to_install?('zsh') run %{