zsh:stderred.theme: Use escape-sequences w/o tput

This commit is contained in:
2021-06-01 22:36:59 +02:00
parent 3db2c2a87e
commit 5ab5a49793

View File

@@ -1,4 +1,10 @@
# Bold red
export STDERRED_ESC_CODE="$(tput bold && tput setaf 1)"
if command -v tput >/dev/null 2>&1; then
STDERRED_ESC_CODE="$(tput bold && tput setaf 1)"
else
STDERRED_ESC_CODE="\e[1m\e31m"
fi
export STDERRED_ESC_CODE
export STDERRED_BLACKLIST="^(git|curl|wget|swipl)$"