make sure we have infocmp before we attempt to use it

This commit is contained in:
David Majnemer 2008-11-24 03:17:22 -06:00
parent 35f19785d9
commit 8daf1a4347

13
zshrc
View file

@ -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'