wonbyte
wonbyte

Reputation: 1001

Difference between .irb_history and .irb-history

What the difference is between the .irb-history and .irb_history files in Ruby?

Upvotes: 4

Views: 866

Answers (2)

shigeya
shigeya

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

hemanth.hm
hemanth.hm

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

Related Questions