Have ruby irb console save history
Blog
Yeah, kitt finished writing this at 14:22 on 11 March 2015
Add this to your ~/.irbrc
file (creating one if it doesn't already exist):
require 'irb/ext/save-history' IRB.conf[:SAVE_HISTORY] = 200 IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
Boom! Last 200 commands are saved, such that you can up arrow / command-p or down arrow / command-n to move through your ruby console history!
Whoo!
Comments
In rails, add two weeks to a
In rails, add two weeks to a date:
Add new comment