mirror of
https://github.com/Erreur32/cheat.git
synced 2024-10-31 21:11:07 +01:00
Made it also necessary to set an environment variable in order to display colors to the terminal (in an effort to avoid an otherwise inevitable holy-war).
This commit is contained in:
parent
fabd1bc242
commit
c15e836268
2
cheat
2
cheat
@ -6,7 +6,7 @@ DEFAULT_CHEAT_DIR = os.path.join(os.path.expanduser('~'), '.cheat')
|
||||
USE_PYGMENTS = False
|
||||
|
||||
# NOTE remove this check if it is confirmed to work on windows
|
||||
if os.name == 'posix':
|
||||
if os.name == 'posix' and 'CHEATCOLORS' in os.environ:
|
||||
try:
|
||||
from pygments import highlight
|
||||
from pygments.util import ClassNotFound
|
||||
|
Loading…
Reference in New Issue
Block a user