X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=blobdiff_plain;f=core%2F11_terminal%2F11_terminal.ax-io;fp=core%2F11_terminal%2F11_terminal.ax-io;h=1ddb802cd2433b3cb2cebe9497632a7c4fe5b5c6;hp=0000000000000000000000000000000000000000;hb=a29eeef664bd3fccfadba903f5178067537d6f1b;hpb=66062dd9a5375d6e51eaf3ec54b416a079654913 diff --git a/core/11_terminal/11_terminal.ax-io b/core/11_terminal/11_terminal.ax-io new file mode 100644 index 0000000..1ddb802 --- /dev/null +++ b/core/11_terminal/11_terminal.ax-io @@ -0,0 +1,12 @@ +# AX-ZSH: Alex' Modular ZSH Configuration +# 10_terminal.zprofile: Initialize terminal settings + +# 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