From: Mike Frysinger Date: Mon, 15 Feb 2021 04:04:18 +0000 (-0500) Subject: utf8.sh: handle unset TERM X-Git-Url: https://git.wh0rd.org/?p=home.git;a=commitdiff_plain;h=a04a3cd55d42bd8384b81c5118cd23e3afd28753 utf8.sh: handle unset TERM --- diff --git a/.profile.d/utf8.sh b/.profile.d/utf8.sh index 7345c68..7953d95 100644 --- a/.profile.d/utf8.sh +++ b/.profile.d/utf8.sh @@ -1,4 +1,4 @@ -if [ "${TERM}" != "dumb" ]; then +if [ "${TERM:-dumb}" != "dumb" ]; then # First use the temp transition. Not all terminals support the next mode. printf '\e%%G' # Then use the perm transition and hope it works.