Have vim:update update vim plugins too
This commit is contained in:
parent
ff8163e072
commit
ae2ac93c71
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
require_relative "lib/output"
|
require_relative "lib/output"
|
||||||
require_relative "lib/homebrew"
|
require_relative "lib/homebrew"
|
||||||
|
require_relative "lib/sh"
|
||||||
|
|
||||||
desc "Ensure vim/macvim is installed and up to date"
|
desc "Ensure vim/macvim is installed and up to date"
|
||||||
task :vim => "vim:update"
|
task :vim => "vim:update"
|
||||||
|
@ -19,8 +20,15 @@ namespace :vim do
|
||||||
|
|
||||||
task :update => 'vim:install' do
|
task :update => 'vim:install' do
|
||||||
path = File.expand_path("~/.vim")
|
path = File.expand_path("~/.vim")
|
||||||
|
|
||||||
echo "Updating vim"
|
echo "Updating vim"
|
||||||
sh "cd #{path} && git pull"
|
sh "cd #{path} && git pull"
|
||||||
|
|
||||||
|
echo "Updating vim plugins"
|
||||||
|
Dir.glob("#{path}/bundle/*") do |f|
|
||||||
|
echo ":: Updating #{File.basename(f)}:"
|
||||||
|
sh_safe "cd #{f} && git pull"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Remove vim"
|
desc "Remove vim"
|
||||||
|
|
Loading…
Reference in a new issue