irb is nice, because is uses readline. I can press <key-up> to bring to
life previously typed lines. That's good. But if I exist irb and then
return to it the history is gone. So it's not like bash(1) and mysql(1)
that save the history is a file. Or is it? Is it possible to make irb
save the history in a file so that I don't have to retype everything if
I restart it?
···
--
Posted via http://www.ruby-forum.com/.
But if I exist irb and then return to it [...]
I meant: "if I exit". Not "if I exist". Sorry about the spam.
···
--
Posted via http://www.ruby-forum.com/\.
Yes.
Utility Belt (http://utilitybelt.rubyforge.org/\) enables this and many
other tweaks.
···
On Wed, Apr 23, 2008 at 4:01 PM, Albert Schlef <albertschlef@gmail.com> wrote:
irb is nice, because is uses readline. I can press <key-up> to bring to
life previously typed lines. That's good. But if I exist irb and then
return to it the history is gone. So it's not like bash(1) and mysql(1)
that save the history is a file. Or is it? Is it possible to make irb
save the history in a file so that I don't have to retype everything if
I restart it?
--
Avdi
Home: http://avdi.org
Developer Blog: Avdi Grimm, Code Cleric
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com
Albert Schlef wrote:
irb is nice, because is uses readline. I can press <key-up> to bring to
life previously typed lines. That's good. But if I exist irb and then
return to it the history is gone. So it's not like bash(1) and mysql(1)
that save the history is a file. Or is it? Is it possible to make irb
save the history in a file so that I don't have to retype everything if
I restart it?
Put this in your .irbrc:
IRB.conf[:SAVE_HISTORY] = 100
···
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407