;imp: hledger-bar: disable ANSI if terminal is non-interactive
This commit is contained in:
parent
515e8622a2
commit
c5b2465fb0
@ -76,7 +76,7 @@ poschar="+"
|
|||||||
# utils
|
# utils
|
||||||
|
|
||||||
# https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit and 24-bit colors:
|
# https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit and 24-bit colors:
|
||||||
if [[ -v $NO_COLOR ]]; then
|
if [[ $- != *i* || -v $NO_COLOR ]]; then
|
||||||
red=''
|
red=''
|
||||||
green=''
|
green=''
|
||||||
nocol=''
|
nocol=''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user