Skip to content

Commit

Permalink
Merge pull request #11 from marksmith/master
Browse files Browse the repository at this point in the history
CLICOLOR_FORCE
  • Loading branch information
ku1ik committed Dec 28, 2011
2 parents 70f8d27 + 67c8a4c commit 07400c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rainbow.rb
Expand Up @@ -4,7 +4,7 @@
module Sickill
module Rainbow
class << self; attr_accessor :enabled; end
@enabled = STDOUT.tty? && ENV['TERM'] != 'dumb'
@enabled = STDOUT.tty? && ENV['TERM'] != 'dumb' || ENV['CLICOLOR_FORCE'] == '1'

TERM_COLORS = {
:black => 0,
Expand Down

0 comments on commit 07400c8

Please sign in to comment.