From: Joel VanderWerf Date: 2006-10-13T13:43:49+09:00 Subject: Re: My .irbrc for console/irb Dr Nic wrote: > Does anyone any interesting things in their .irbrc file? This is useful sometimes: def dump_history(file=nil) if file File.open(file, "w") do |f| f.puts IRB::ReadlineInputMethod::HISTORY.to_a end else puts IRB::ReadlineInputMethod::HISTORY.to_a end end And there is this gem from Logan Capaldo: def reset_irb exec($0) end -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407