Skip to content

Instantly share code, notes, and snippets.

@bordy
Forked from ambethia/install-ruby.sh
Created August 13, 2009 19:13
Show Gist options
  • Save bordy/167396 to your computer and use it in GitHub Desktop.
Save bordy/167396 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
v = RUBY_VERSION.match(/^1\.9/) ? "18" : "19"
%w{ruby irb gem erb ri rdoc}.each do |c|
system "sudo ln -fs /usr/local/bin/#{c+v} /usr/local/bin/#{c}"
end
system "ruby --version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment