Skip to content

Commit

Permalink
Update .irbrc
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Suárez <[email protected]>
  • Loading branch information
santib and Diego Suárez committed Jul 3, 2023
1 parent 19c6d2b commit b8fd925
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .irbrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Add color coding based on Rails environment for safety
if defined?(Rails)
banner = if Rails.env.production?
"\e[41;97;1m #{Rails.env} \e[0m "
else
"\e[42;97;1m #{Rails.env} \e[0m "
end
banner_color = Rails.env.production? ? 41 : 42
banner = "\e[#{banner_color};97;1m #{Rails.env} \e[0m "

# Build a custom prompt
IRB.conf[:PROMPT][:CUSTOM] = IRB.conf[:PROMPT][:DEFAULT].merge(
Expand Down

0 comments on commit b8fd925

Please sign in to comment.