Skip to content

Instantly share code, notes, and snippets.

@leobessa
Created August 19, 2010 20:03
Show Gist options
  • Save leobessa/538760 to your computer and use it in GitHub Desktop.
Save leobessa/538760 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "yaml"
commands = ""
info = YAML.load(`rvm info`)
info.values.first["environment"].each do |k,v|
commands << %Q{export #{k}="#{v}"\n}
end
puts commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment