Skip to content

Instantly share code, notes, and snippets.

View ninghao's full-sized avatar
🎯
Focusing

宁皓网 ninghao

🎯
Focusing
View GitHub Profile
@ninghao
ninghao / .irbrc
Last active October 17, 2016 12:40
IRB.conf[:PROMPT][:CUSTOM_PROMPT] = { # name of prompt mode
:PROMPT_I => ">> ", # simple prompt
:PROMPT_S => nil, # prompt for continuated strings
:PROMPT_C => nil, # prompt for continuated statement
:RETURN => "=> %s\n\n" # format to return value
}
IRB.conf[:PROMPT_MODE] = :CUSTOM_PROMPT