From 7df185de08923b1f5a2015538838a6cc7128091b Mon Sep 17 00:00:00 2001 From: hophacker Date: Tue, 9 Mar 2021 13:50:37 +0800 Subject: [PATCH] install spacevim from our own --- Rakefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 078cef8..bdc73ef 100644 --- a/Rakefile +++ b/Rakefile @@ -66,10 +66,19 @@ end desc 'install spacevim and related config files' task :install_spacevim do - run 'curl -sLf https://spacevim.org/install.sh | bash' + run 'curl -sLf https://spacevim.org/install.sh | sed "s;github.com/SpaceVim;git.ruilisi.com/ruilisi;" | bash' install_files(Dir.glob('SpaceVim*')) end +desc 'Update spacevim' +task :update_spacevim do + run %( + cd ~/.SpaceVim + git remote set-url origin https://git.ruilisi.com/ruilisi/SpaceVim.git + git pull --rebase + ) +end + desc 'Install tools which are necessary for developers' task :install_tools do if macos?