require 'irb/completion' # Always use completion IRB.conf[:AUTO_INDENT] = true # Auto-indent structures like methods, classes # Define own badass hanumizzle prompt, based on :SIMPLE. Normal prompts will # be '>> ', continuation prompts '?> ' (in red), and return values, '=> %s', # (in yellow). There will be no string continuation prompts. IRB.conf[:PROMPT][:HANUMIZZLE] = { :PROMPT_I => '>> ', :PROMPT_N => '>> ', :PROMPT_S => nil, :PROMPT_C => "\033[01;31m?>\033[00m ", :RETURN => "\033[01;33m=> %s\033[00m\n" } IRB.conf[:PROMPT_MODE] = :HANUMIZZLE # Now make it the default IRB.conf[:IGNORE_EOF] = true # Ignore EOF; use quit to exit