I found that when I used $TERM in mimi.conf, it was substituting the value of $COLORTERM instead of $TERM. Looking at the code I found the culprit at line 163:
grep "$program" will match not only the desired variable, but also those which have that variable name as a substring (either of the name or the value). Then head -1 | cut -d = -f 2 simply grabs the value of the first one listed.
I found that when I used
$TERM
inmimi.conf
, it was substituting the value of$COLORTERM
instead of$TERM
. Looking at the code I found the culprit at line 163:grep "$program"
will match not only the desired variable, but also those which have that variable name as a substring (either of the name or the value). Thenhead -1 | cut -d = -f 2
simply grabs the value of the first one listed.This can be fixed quite simply: