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?