Skip to content

Add color-coded app and environment information to the Rails console prompt.

License

Notifications You must be signed in to change notification settings

fortytools/console_color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConsoleColor

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

Installation

Add this line to your application's Gemfile:

gem 'console_color'

And then execute:

$ bundle

Or install it yourself as:

$ gem install console_color

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

© Joey Aghion

LICENSE

About

Add color-coded app and environment information to the Rails console prompt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%