From: Alexander Barton Date: Sun, 28 Aug 2016 20:10:05 +0000 (+0200) Subject: 10_terminal: Explicitly set SHELL to /bin/sh X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ax-zsh.git;a=commitdiff_plain;h=6cb3476f401c11ec1cde8aa3470e9545d99556da 10_terminal: Explicitly set SHELL to /bin/sh --- 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