GitHub.register :open do 
  if remote = `git config -l`.split("\n").detect { |line| line =~ /remote.origin.url/ }
    exec "open http://github.com/#{remote.split(':').last.chomp('.git')}"
  end
end

GitHub.register :info do |repo,|
  puts "== Grabbing info for #{repo}"
end

GitHub.register :open do 
  if remote = `git config --get remote.origin.url`.chomp
    exec "open http://github.com/#{remote.split(':').last.chomp('.git')}"
  end
end

GitHub.register :info do |repo,|
  puts "== Grabbing info for #{repo}"
end

Use git config --get for obtaining the single config value
Use git config --get for obtaining the single config value
