install spacevim from our own

This commit is contained in:
hophacker 2021-03-09 13:50:37 +08:00
parent ba1db53547
commit 7df185de08

View File

@ -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?