recentpopularlog in

kme : comandline   7

Ruby irb Command History Mac Developer Tips

# ~/.irbrc
require 'irb/completion'
require 'irb/ext/save-history'

ARGV.concat [ "--readline",
"--prompt-mode",
"simple" ]

# 25 entries in the list
IRB.conf[:SAVE_HISTORY] = 25

# Store results in home directory with specified file name
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
irb  ruby  repl  configfile  rcfile  comandline  annoyance  solution  fuckina 
july 2014 by kme

Copy this bookmark:





to read