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

5
zshrc
View file

@ -64,11 +64,14 @@ elif ( which gdircolors &> /dev/null ) ; then
eval $(gdircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS")) eval $(gdircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS"))
fi fi
# terminal fallback stuff
if (which infocmp &> /dev/null) ; then
case "${TERM}" in case "${TERM}" in
xterm-256color) xterm*)
( infocmp $TERM &> /dev/null ) || export TERM=xterm ( infocmp $TERM &> /dev/null ) || export TERM=xterm
;; ;;
esac esac
fi
( which lesspipe &> /dev/null ) && eval $(lesspipe) ( which lesspipe &> /dev/null ) && eval $(lesspipe)
export LESS=' -R' export LESS=' -R'