Skip to content

Instantly share code, notes, and snippets.

@cokara
Created May 29, 2014 21:32
Show Gist options
  • Save cokara/28bcdc838315de902f53 to your computer and use it in GitHub Desktop.
Save cokara/28bcdc838315de902f53 to your computer and use it in GitHub Desktop.
My .irbrc file. Put this in your home folder.
IRB.conf[:PROMPT][:CUSTOM] = {
:PROMPT_I => "\e[0;33m%N(%m):%03n: > \e[m ",
:PROMPT_S => "\e[0;33m%N(%m):%03n:%l>>\e[m ",
:PROMPT_C => "\e[0;33m%N(%m):%03n:..\e[m ",
:PROMPT_N => "\e[0;33m%N(%m):%03n:..\e[m ",
:RETURN => "\e[1;31m=>\e[m %s\n"
}
IRB.conf[:PROMPT_MODE] = :CUSTOM
IRB.conf[:AUTO_INDENT] = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment