hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Graham <billgra...@gmail.com>
Subject Re: Shell History
Date Thu, 26 May 2011 16:08:38 GMT
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.george@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message