mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
make sure we have infocmp before we attempt to use it
This commit is contained in:
parent
35f19785d9
commit
8daf1a4347
1 changed files with 8 additions and 5 deletions
13
zshrc
13
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'
|
||||
|
|
Loading…
Add table
Reference in a new issue