Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set the IRB prompt to be the end of the current directory
- PWD = Dir.pwd.split("/").last
- IRB.conf[:PROMPT][:MY_PROMPT] = {
- :PROMPT_I => "#{PWD}> ",
- :PROMPT_S => "#{PWD}%l ",
- :PROMPT_C => "#{PWD}>> ",
- :RETURN => "%s\n"
- }
- IRB.conf[:PROMPT_MODE] = :MY_PROMPT
- # Haven't tried it but rails people could also add the RAILS_ENV? Say which environment your console was in
Add Comment
Please, Sign In to add comment