diff --git a/cheat/sheets.py b/cheat/sheets.py index 1a0b28e..e60bffb 100644 --- a/cheat/sheets.py +++ b/cheat/sheets.py @@ -84,6 +84,8 @@ def search(term): match = '' for line in open(cheatsheet[1]): if term in line: + if 'CHEATCOLORS' in os.environ: + line = line.replace(term, '\033[1;31m' + term + '\033[0m'); match += ' ' + line if match != '':