Hi all,
is there a way to save the jirb history between sessions?
I always launch jirb via
jruby --1.9 -J-ea -S irb
and nothing gets written or read to/from the history file, e.g.
~/.irb_history.
Any ideas?
Cheers,
– Jan
Hi all,
is there a way to save the jirb history between sessions?
I always launch jirb via
jruby --1.9 -J-ea -S irb
and nothing gets written or read to/from the history file, e.g.
~/.irb_history.
Any ideas?
Cheers,
– Jan
On Thu, Sep 1, 2011 at 9:48 AM, Hegewald [email protected] wrote:
Modify your irbrc according to this: http://shep-dev.com/?p=27
In jirb, by default, IRB.conf[:SAVE_HISTORY] = nil
–
Christian
On 01.09.2011, at 10:25, Christian MICHON wrote:
– Jan
Modify your irbrc according to this: http://shep-dev.com/?p=27
In jirb, by default, IRB.conf[:SAVE_HISTORY] = nil
Many thanks, that works.
I would never have guessed these settings, because my ruby 1.9.2 install
has IRB.conf[:SAVE_HISTORY] set to nil too, but the irb does save the
history between sessions.
Cheers,
– Jan
On Thu, Sep 1, 2011 at 10:25 AM, Christian MICHON
[email protected] wrote:
– Jan
Modify your irbrc according to this: http://shep-dev.com/?p=27
In jirb, by default, IRB.conf[:SAVE_HISTORY] = nil
–
Christian
addendum: even if you did not set your environment accordingly prior
to this session, and you would need to save the current session’s
history, here’s a one-liner script.
File.open(‘history.txt’,‘w’) { |f| Readline::HISTORY.each { |l| f <<
“#{l}\n” } }
–
Christian
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs