From 6cb3476f401c11ec1cde8aa3470e9545d99556da Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 28 Aug 2016 22:10:05 +0200 Subject: [PATCH] 10_terminal: Explicitly set SHELL to /bin/sh --- core/10_terminal/10_terminal.zprofile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/10_terminal/10_terminal.zprofile b/core/10_terminal/10_terminal.zprofile index b9e8ae8..1ddb802 100644 --- a/core/10_terminal/10_terminal.zprofile +++ b/core/10_terminal/10_terminal.zprofile @@ -1,6 +1,12 @@ # AX-ZSH: Alex' Modular ZSH Configuration # 10_terminal.zprofile: Initialize terminal settings -[[ -t 0 ]] && eval `tset -Is -m "dec-vt52:vt52"` +# Use tset(1) to validate TERM when stdin as a tty. Explicitly set SHELL to +# /bin/sh to force tset to output sh-compliant commands even when SHELL was not +# set correctly or for an other shell. +[[ -t 0 ]] && eval `SHELL=/bin/sh tset -Is -m "dec-vt52:vt52"` + +# Is TERM still unset? [[ -z "$TERM" ]] && TERM="dumb" + export TERM -- 2.39.2