Created
December 6, 2010 23:47
-
-
Save jney/731218 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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