Created
August 1, 2013 00:42
-
-
Save ericchen0121/6127568 to your computer and use it in GitHub Desktop.
club's irc pretty print, awesome print irc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # require 'rubygems' #needed for wirble | |
| require 'irb/completion' # non-wirble auto-complete | |
| require 'pp' | |
| require 'wirble' | |
| begin | |
| # init wirble | |
| Wirble.init | |
| Wirble.colorize | |
| rescue LoadError => err | |
| $stderr.puts "Couldn't load Wirble: #{err}" | |
| end | |
| IRB.conf[:AUTO_INDENT] = true | |
| IRB.conf[:USE_READLINE] = true | |
| # loads simple IRB (without RVM notice) | |
| IRB.conf[:PROMPT_MODE] = :SIMPLE | |
| # loads awesome_print | |
| require "awesome_print" | |
| AwesomePrint.irb! | |
| def clear | |
| system('clear') | |
| end | |
| puts ("Welcome to Ruby Console User") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment