From 66166e0b1b8440c2312e2df88639a341f1bdc778 Mon Sep 17 00:00:00 2001 From: Howland Owl Date: Tue, 25 Oct 2016 09:10:20 +0300 Subject: [PATCH] check for st's terminfo if we're set to st and alter to xterm if missing --- 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"