Skip to content

Instantly share code, notes, and snippets.

@the-spectator
Created December 18, 2019 20:53
Show Gist options
  • Save the-spectator/c0ee4076402c5f5ebc4ef49ce75f5e7c to your computer and use it in GitHub Desktop.
Save the-spectator/c0ee4076402c5f5ebc4ef49ce75f5e7c to your computer and use it in GitHub Desktop.
# IRB Classic prompt
IRB.conf[:PROMPT_MODE][:CLASSIC] = {
:PROMPT_I => "%N(%m):%03n:%i> ", # irb(main):001:0>
:PROMPT_S => "%N(%m):%03n:%i%l ", # irb(main):003:0"
:PROMPT_C => "%N(%m):%03n:%i* ", # irb(main):005:0*
:RETURN => "%s\n" # used to printf #
}
vs
# IRB Simple prompt
IRB.conf[:PROMPT_MODE][:CLASSIC] = {
:PROMPT_I => ">> ", # >>
:PROMPT_C => "?> ", # ?>
:RETURN: => "%s"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment