Fix setting default TERM value in bash

This commit is contained in:
Gunter Labes 2023-06-10 01:31:54 +02:00 committed by GitHub
parent a6053e0dcd
commit 1fb83c3c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,8 @@
shopt -s globstar nullglob
export TERM=${TERM-xterm} # hopefully a good approximation of what github supports
# bash sets TERM to dumb by default but does not export it
compgen -e -X '!TERM' || export TERM=xterm # hopefully a good approximation of what github supports
reset=$(tput sgr0)
red=$(tput setaf 1)
green=$(tput setaf 2)