Skip to content

Instantly share code, notes, and snippets.

@bodbdigr
Created February 7, 2012 22:42
Show Gist options
  • Save bodbdigr/1762642 to your computer and use it in GitHub Desktop.
Save bodbdigr/1762642 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
git_bundles = [
'https://github.com/nvie/vim-pep8.git',
'https://github.com/msanders/snipmate.vim.git',
'https://github.com/tpope/vim-surround.git',
'https://github.com/fholgado/minibufexpl.vim.git',
'https://github.com/vim-scripts/Command-T.git',
'git://github.com/altercation/vim-colors-solarized.git',
'https://github.com/tpope/vim-fugitive.git',
'https://github.com/scrooloose/nerdtree.git',
'https://github.com/Townk/vim-autoclose.git',
'https://github.com/int3/vim-taglist-plus.git',
'https://github.com/ervandew/supertab.git',
'https://github.com/mileszs/ack.vim.git',
'git://github.com/klen/python-mode.git',
'https://github.com/mjbrownie/pythoncomplete.vim.git',
'https://github.com/vim-scripts/The-NERD-Commenter.git',
'https://github.com/mattn/zencoding-vim.git',
'https://github.com/LStinson/TagmaTasks.git',
'https://github.com/sjl/gundo.vim.git',
'https://github.com/vim-scripts/pw.git',
'https://github.com/aerosol/vim-compot.git',
'https://github.com/noahfrederick/Hemisu.git',
'https://github.com/vim-scripts/VimClojure.git',
'https://github.com/vim-scripts/c.vim',
'https://github.com/vim-scripts/csslint.vim.git',
'https://github.com/tmhedberg/SimpylFold.git',
'https://github.com/vim-scripts/vim-coffee-script.git',
'https://github.com/vim-scripts/Gist.vim.git',
'https://github.com/vim-scripts/vim-diff.git',
'https://github.com/vim-scripts/node.js.git',
'git://github.com/tpope/vim-rails.git'
]
require 'fileutils'
require 'open-uri'
bundles_dir = File.join(File.dirname(__FILE__), "bundle")
FileUtils.cd(bundles_dir)
git_bundles.each do |url|
dir = url.split('/').last.sub(/\.git$/, '')
if !File.directory? dir
puts "unpacking #{url} into #{dir}"
`git clone #{url} #{dir}`
else
puts "updating #{dir}"
`cd #{dir} && git pull --all && cd ..`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment