---
title: "Discussion on \"My configuration for IRB: highlight Rails.env\" | Hashnode"
description: "Discussion on \"My configuration for IRB: highlight Rails.env\". Never forget the environment you are in.\n\n# .irbrc\nmodule ColorString\n  refine String do\n    def cyan = \"\\e[36m#{self}\\e[0m\"\n    def bg_red = \"\\e[41m#{self}\\e[0m\"\n    def bg_yellow = \"\\e[43m#{self}\\e[0m\"\n    def bg_green = \"\\e[42m#{self}\\e[0m\"\n  end\n..."
url: "https://hashnode.com/posts/my-configuration-for-irb-highlight-railsenv/65debbd601d969a77c32890c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [My configuration for IRB: highlight Rails.env](https://blog.brennetot.com/my-configuration-for-irb-highlight-railsenv?utm_source=hashnode&utm_medium=feed)

Never forget the environment you are in. # .irbrc module ColorString refine String do def cyan = "\\e\[36m#{self}\\e\[0m" def bg\_red = "\\e\[41m#{self}\\e\[0m" def bg\_yellow = "\\e\[43m#{self}\\e\[0m" def bg\_green = "\\e\[42m#{self}\\e\[0m" end ...

Feb 28, 2024 · 1 min read · blog.brennetot.com  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#irb](https://hashnode.com/tag/irb)
-   [#console](https://hashnode.com/tag/console)

## Written by

[Thomas Brennetot](https://hashnode.com/@Damax)

@Damax · Tokyo, Japan

  
[View profile](https://hashnode.com/@Damax)

Rails excellence with innocence

10+ years most with Ruby on Rails and JavaScript frontend and some Go. My first language is C for 3 years in university.

## Responses

Markdown supported · ⌘↵ to post

[Watson Robert](https://hashnode.com/@Watsonrobert)

[Feb 28, 2024](https://hashnode.com/posts/my-configuration-for-irb-highlight-railsenv/65debbd601d969a77c32890c/comment/65dec8eccb70ca8db9349e3f)

"When it comes to crypto trading, it's important to find a platform that is genuine, secure, and reliable. (Adelynn Richardson fx on Instagram/Facebook) is a trusted and reputable platform that has been helping people to earn through crypto trading for many years. They have a proven track record of success, and their platform is designed to be safe and secure. Adelynn Richardson fx is committed to providing a transparent and user-friendly experience, so you can feel confident in your crypto trading journey."
