]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/11_terminal/11_terminal.ax-io
Introduce new "ax-io" stage, which is run before all other stages
[ax-zsh.git] / core / 11_terminal / 11_terminal.ax-io
diff --git a/core/11_terminal/11_terminal.ax-io b/core/11_terminal/11_terminal.ax-io
new file mode 100644 (file)
index 0000000..1ddb802
--- /dev/null
@@ -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