From 14f115f6b373de5531647c3da29b7b3c75cc351e Mon Sep 17 00:00:00 2001 From: Howland Owl Date: Tue, 25 Oct 2016 09:12:06 +0300 Subject: [PATCH] Check if we have st terminfo; change to xterm if we don't --- zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshrc b/zshrc index 2a3d5a5..55585b1 100644 --- a/zshrc +++ b/zshrc @@ -12,6 +12,12 @@ if [ -x /usr/bin/xset ]; then xset -b fi +if [[ ${TERM} == st* ]]; then + if [ ! -e /usr/share/terminfo/s/st-256color ]; then + export TERM=xterm-256color + fi +fi + unsetopt beep bindkey -e export LESS="-X -R -F"