Reading your original post again I see it might be a different issue after
all.

IIRC, my problem wasn't that commands weren't being saved, but that they
weren't getting reloaded after I restarted my shell.


On Thu, May 26, 2011 at 10:15 AM, Lars George <lars.geo...@gmail.com> wrote:

> Thanks Bill,
>
> Will try asap. Seems like a genuine IRB issue though.
>
> Lars
>
> On Thu, May 26, 2011 at 6:08 PM, Bill Graham <billgra...@gmail.com> wrote:
> > I had the same issue and found that adding the Readline module shown in
> this
> > blog post to my .irbc file did the trick.
> >
> > http://blog.nicksieger.com/articles/2006/04/23/tweaking-irb
> >
> > I had to make this change to it though:
> >
> > #LOG = "#{ENV['HOME']}/.irb-history"
> >  LOG = IRB.conf[:HISTORY_FILE]
> >
> >
> > On Thu, May 26, 2011 at 2:10 AM, Lars George <lars.geo...@gmail.com>
> wrote:
> >
> >> Hi,
> >>
> >> I have this issue as of late that my shell history is not saved
> >> anymore. I have old commands there, and the history file has exactly
> >> 100 lines as specified in the .irbrc
> >>
> >> $ cat ~/.irbrc
> >> require 'irb/ext/save-history'
> >> ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
> >> IRB.conf[:SAVE_HISTORY] = 100
> >> IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
> >>
> >> (I added the --readline line in an attempt to fix the issue, but to no
> >> avail)
> >>
> >> Did anyone else have this issue? Just wondering if that is a Ruby,
> >> JRuby, or hirb issue.
> >>
> >> Lars
> >>
> >
>

Reply via email to