Add this to the .irbrc file in the rails app directory.
rails_env = "🤗"
if ENV['RAILS_ENV'] == 'production'
rails_env = "🥶"
elsif ENV['RAILS_ENV'] == 'staging'
rails_env = "🧘"
end
IRB.conf[:PROMPT][:RAILS_APP] = {
:PROMPT_I=>"#{rails_env} %N(%m):%03n> ",
:PROMPT_S=>"#{rails_env} %N(%m):%03n%l ",
:PROMPT_C=>"#{rails_env} %N(%m):%03n* ",
:RETURN=>"#{rails_env} => %s\n"
}
IRB.conf[:PROMPT_MODE] = :RAILS_APP