1

I want to see what I wrote in irb. My terminal is past the scroll point to view it. Is there a git command to view irb input?

CJ Jean
  • 971
  • 1
  • 8
  • 10

1 Answers1

1

It should be irb history.

Make sure your git bash homedir ~ has a ~/.irbrc file with:

require 'irb/ext/save-history'
#History configuration
IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"

Then you should be able to read the history in ~/.irb-save-history.
See "rbenv irb history is not saving"

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250