Skip to content

Instantly share code, notes, and snippets.

@yasuhito
Created February 4, 2011 03:47
Show Gist options
  • Save yasuhito/810706 to your computer and use it in GitHub Desktop.
Save yasuhito/810706 to your computer and use it in GitHub Desktop.
.irbrc
require "irb/xmp"
# ヒストリの設定
require "irb/ext/save-history"
IRB.conf[ :EVAL_HISTORY ] = 10000
IRB.conf[ :USE_READLINE ] = true
IRB.conf[ :SAVE_HISTORY ] = 10000
IRB.conf[ :HISTORY_PATH ] = File::expand_path( "~/.irb_history" )
# 補完を有効にする
require "irb/completion"
# wirbleを使って色をつける
require "rubygems"
require "wirble"
Wirble.init( :skip_prompt => :DEFAULT )
Wirble.colorize
# オートインデント
IRB.conf[ :AUTO_INDENT ] = true
### Local variables:
### mode: Ruby
### coding: utf-8
### indent-tabs-mode: nil
### End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment