aboutsummaryrefslogtreecommitdiff
path: root/config/zsh
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2021-07-16 14:09:05 -0500
committerMatt Singleton <matt@xcolour.net>2021-07-16 14:09:05 -0500
commitfbeeeb5053bcd39d50613daa50be7ae6b3cf672b (patch)
tree0f7ff01924a5c495af750e5731698b9f205ef891 /config/zsh
parent44ebba5387dbb6e493f845a1673af26c8aec56a2 (diff)
make sure TERM is installed
Diffstat (limited to 'config/zsh')
-rw-r--r--config/zsh/30-behavior.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/zsh/30-behavior.zsh b/config/zsh/30-behavior.zsh
index e7e6b81..d62834f 100644
--- a/config/zsh/30-behavior.zsh
+++ b/config/zsh/30-behavior.zsh
@@ -19,6 +19,10 @@ setopt hist_verify # load hist into command buffer rather than exec immediately
#
# term support
+# make sure $TERM is installed
+# if not, fall back on xterm-256color
+infocmp "$TERM" > /dev/null 2>&1 || export TERM=xterm-256color
+
# set term title appropriately based on term type
# user@host:current_dir (current_command)
case "$TERM" in