Created
December 18, 2019 20:53
-
-
Save the-spectator/c0ee4076402c5f5ebc4ef49ce75f5e7c to your computer and use it in GitHub Desktop.
This file contains 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
# 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