Created
September 18, 2014 05:15
-
-
Save oozzal/c4946d70cd69f6857ea3 to your computer and use it in GitHub Desktop.
This file contains 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
#!/Users/cloudfactory001/.rvm/rubies/ruby-2.1.2/bin/ruby | |
require 'colorize' | |
path = ARGV[0] | |
unless path | |
print "Usage:".colorize(:red) | |
puts "\tvinstall <username>/<repo-name>".colorize(:green) | |
print "Example:".colorize(:red) | |
puts "vinstall tpope/vim-rails".colorize(:green) | |
exit | |
end | |
repo = path.split("/").last if path | |
`git clone git://github.com/#{path}.git ~/.vim_runtime/sources_non_forked/#{repo}` | |
puts "Installation of #{repo.colorize(:green)} finished. Restart vim." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment