mirror of
https://github.com/cheat/cheat.git
synced 2024-11-18 01:40:39 +01:00
Disable colorized output when CHEATCOLORS is not "true", or not set
This commit is contained in:
parent
cccf37c284
commit
6d1eff16a1
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ def colorize(sheet_content):
|
|||
""" Colorizes cheatsheet content if so configured """
|
||||
|
||||
# only colorize if so configured
|
||||
if not 'CHEATCOLORS' in os.environ:
|
||||
if not 'CHEATCOLORS' in os.environ or os.environ.get('CHEATCOLORS') != 'true':
|
||||
return sheet_content
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue