Skip to content

Instantly share code, notes, and snippets.

@ericchen0121
Created August 1, 2013 00:42
Show Gist options
  • Save ericchen0121/6127568 to your computer and use it in GitHub Desktop.
Save ericchen0121/6127568 to your computer and use it in GitHub Desktop.
club's irc pretty print, awesome print irc
# 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