1
0
Fork 0

Don't depend on COLORTERM being there

This commit is contained in:
Jeremy Kaplan 2018-02-08 19:10:51 -08:00 committed by Jeremy Kaplan
commit 24cdbe6f97

View file

@ -75,10 +75,11 @@ $TAKO_SETTINGS.aliases.update({
'enscript': 'enscript -M Letter',
'screenshot': _screenshot,
'g': 'git',
'rg': 'rg -S',
})
if 'TERM' in ${...}:
if 'truecolor' in $COLORTERM or '24bit' in $COLORTERM:
if 'COLORTERM' in ${...} and ('truecolor' in $COLORTERM or '24bit' in $COLORTERM):
colors = {
'blue': (95, 215, 255),
'orange': (215, 95, 0),