view .irbrc @ 482:93ac94dc3feb

Updated config
author unexist
date Thu, 29 Nov 2018 09:25:32 +0100
parents 7477775a1bc4
children
line wrap: on
line source

#!/usr/bin/ruby
#
# @file Irb config
#
# @copyright (c) 2010-2011, Christoph Kappel <unexist@dorfelite.net>
# @version $Id: .irbrc,v 368 1312573227.0-7200 unexist $
#

require "rubygems" rescue nil

# Irb config 
if defined? IRB
  require "wirble" rescue nil
  require "bond" rescue nil
  require "irb/ext/save-history"

  IRB.conf[:SAVE_HISTORY] = 1000
  IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
  IRB.conf[:PROMPT_MODE] = :SIMPLE
  IRB.conf[:AUTO_INDENT] = true

  # Load wirble
  Wirble.init
  Wirble.colorize

  # Load bond
  Bond.start
else #< Ripl config
  require "ripl/color_result" rescue nil
end