ConsoleColor adds the color-coded application name and environment to your Rails console prompt.
By default, the prompt is green in development, red in production, and yellow elsewhere. Alternatively, you can specify a custom color in an initializer (using the bash colorization codes):
ConsoleColor::COLORS['production'] = "\e[35m" # pink
Add this line to your application's Gemfile:
gem 'console_color'
And then execute:
$ bundle
Or install it yourself as:
$ gem install console_color
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
© Joey Aghion