From: Josh Cheek Date: 2010-12-31T20:26:24+09:00 Subject: Re: .irb-history --0016361e836e6d69c80498b312cb Content-Type: text/plain; charset=ISO-8859-1 On Fri, Dec 31, 2010 at 4:05 AM, koulikoff wrote: > On Dec 31, 7:25 am, Anurag Priyam wrote: > > > Hello! Please, tell me, does anyone know how to increase the history > > > file above 100 lines to be saved in 1.9.2. > > > > IRB.conf[:SAVE_HISTORY] = 1000 > > > > -- > > Anurag Priyam > > $ wc -l ~/.irb-history > 100 /home/dima/.irb-history > $ r c > Loading development environment (Rails 3.0.1) > ruby-1.9.2-p0 > IRB.conf[:SAVE_HISTORY] = 1000 > => 1000 > ruby-1.9.2-p0 > 'one' > => "one" > ruby-1.9.2-p0 > 'two' > => "two" > ruby-1.9.2-p0 > 'three' > => "three" > ruby-1.9.2-p0 > > $ wc -l ~/.irb-history > 100 /home/dima/.irb-history > > Try placing the code in a file called ~/.irbrc $ cat ~/.irbrc IRB.conf[:SAVE_HISTORY] = 1000 --0016361e836e6d69c80498b312cb--