Difference between .irb_history and .irb-history

What is the difference between files .irb-historyand .irb_historyin Ruby?

+3
source share
2 answers

Depending on your versions "#{ENV['HOME']}/.irb-history"or the "#{ENV['HOME']}/.irb_history"files contain a list of all the lines that were entered in irb, you can do cat ~/.irb-historyto see the contents, and the file irbrc.rbwill also give your details of the movement into it.

+1
source

Which line editing library do you associate with Ruby?

I believe that if you create ruby ​​using readline GNU, it will use .irb-history and if you communicate with libedit (if Ruby configure cannot find readline), it uses .irb_history.

0
source

All Articles