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?
Asked
Active
Viewed 603 times
1 Answers
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"