require 'irb/completion'
IRB.conf[:use_readline] = true
IRB.conf[:PROMPT_MODE] = :XMP
#IRB.conf[:PROMPT] =
#simple-prompt
def ri arg
  puts `ri #{arg}`
end
def ri(*names)
  system(%{ri #{names.map {|name| name.to_s}.join(" ")}})
end
#require 'rdoc/ri/ri_driver'
#def ri(*names)
#  oargv = Object.const_get(:ARGV)
#  Object.const_set(:ARGV, names)
#  RiDriver.new.process_args
#  Object.const_set(:ARGV, oargv)
#end

