scripts/irbrc.rb in rvm-0.1.43 vs scripts/irbrc.rb in rvm-0.1.44

- old
+ new

@@ -1,8 +1,13 @@ # This is the common irbrc file used by all rvm ruby installations. # This file will be overriden every time you update rvm. # Turn on completion. +begin +require "readline" +rescue + puts "Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.\nYou may follow 'rvm notes' for dependencies and/or read the docs page http://rvm.beginrescueend.com/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the readline libraries." +end require "irb/completion" rescue nil # Turn on history saving. require "irb/ext/save-history" IRB.conf[:HISTORY_FILE] = File.join(ENV["HOME"], ".irb-history")