]> arthur.barton.de Git - ax-zsh.git/commitdiff
10_terminal: Explicitly set SHELL to /bin/sh
authorAlexander Barton <alex@barton.de>
Sun, 28 Aug 2016 20:10:05 +0000 (22:10 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 28 Aug 2016 20:10:05 +0000 (22:10 +0200)
core/10_terminal/10_terminal.zprofile

index b9e8ae81dffb5aba6a55a3536df8a2279842f529..1ddb802cd2433b3cb2cebe9497632a7c4fe5b5c6 100644 (file)
@@ -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