Skip to content

Instantly share code, notes, and snippets.

@jney
Created December 6, 2010 23:47
Show Gist options
  • Select an option

  • Save jney/731218 to your computer and use it in GitHub Desktop.

Select an option

Save jney/731218 to your computer and use it in GitHub Desktop.
namespace :pathogen do
task :update do
`curl -# -o ./autoload/pathogen.vim 'https://github.com/tpope/vim-pathogen/raw/master/autoload/pathogen.vim'`
end
end
namespace :modules do
namespace :rm do
Dir.entries('bundle').reject{|d| d == '.' || d == '..' }.each do |directory|
task directory do
` git rm --cached ./bundle/#{directory} && \
sed -i '/.*#{directory}.*/,+2 d' .gitmodules && \
rm -rf ./bundle/#{directory} && \
git commit -m 'removing plugin #{directory}'`
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment