From 24cdbe6f972aa9c4bdae23f320f404cb569a74ef Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Thu, 8 Feb 2018 19:10:51 -0800 Subject: [PATCH] Don't depend on COLORTERM being there --- tako/config.tako | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tako/config.tako b/tako/config.tako index bc58b53..78f1651 100644 --- a/tako/config.tako +++ b/tako/config.tako @@ -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),