mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
;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
|
||||
|
||||
# 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=''
|
||||
green=''
|
||||
nocol=''
|
||||
|
Loading…
Reference in New Issue
Block a user