]> git.wh0rd.org - home.git/blobdiff - .profile.d/utf8.sh
utf8.sh: handle unset TERM
[home.git] / .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.