From a04a3cd55d42bd8384b81c5118cd23e3afd28753 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 14 Feb 2021 23:04:18 -0500 Subject: [PATCH] utf8.sh: handle unset TERM --- .profile.d/utf8.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.2