Reputation: 1001
What the difference is between the .irb-history
and .irb_history
files in Ruby?
Upvotes: 4
Views: 866
Reputation: 4922
Which line editing library are you linking with Ruby?
I believe if you build ruby with GNU readline, it's using .irb-history, and if you link with libedit (if Ruby configure can't find readline), it's using .irb_history.
Upvotes: 0
Reputation: 4577
Based on your version "#{ENV['HOME']}/.irb-history"
or "#{ENV['HOME']}/.irb_history"
files contain the list of all the lines that one has typed into to the irb, you can do a cat ~/.irb-history
to see the contents and also irbrc.rb
file will give your move details into this.
Upvotes: 1