]> git.wh0rd.org Git - home.git/commitdiff
utf8.sh: handle unset TERM
authorMike Frysinger <vapier@gentoo.org>
Mon, 15 Feb 2021 04:04:18 +0000 (23:04 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 15 Feb 2021 04:04:18 +0000 (23:04 -0500)
.profile.d/utf8.sh

index 7345c68ee998422f56f00f6cb630ba1f37a24185..7953d95c27fd68c84977f5a6faa632d3559b2b61 100644 (file)
@@ -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.