From 8daf1a4347872d4c1d4dc78acae739f952bad7d0 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Mon, 24 Nov 2008 03:17:22 -0600 Subject: [PATCH] make sure we have infocmp before we attempt to use it --- zshrc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/zshrc b/zshrc index 058e06a..0444ac0 100644 --- a/zshrc +++ b/zshrc @@ -64,11 +64,14 @@ elif ( which gdircolors &> /dev/null ) ; then eval $(gdircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS")) fi -case "${TERM}" in - xterm-256color) - ( infocmp $TERM &> /dev/null ) || export TERM=xterm - ;; -esac +# terminal fallback stuff +if (which infocmp &> /dev/null) ; then + case "${TERM}" in + xterm*) + ( infocmp $TERM &> /dev/null ) || export TERM=xterm + ;; + esac +fi ( which lesspipe &> /dev/null ) && eval $(lesspipe) export LESS=' -R'