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"))
|
eval $(gdircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS"))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${TERM}" in
|
# terminal fallback stuff
|
||||||
xterm-256color)
|
if (which infocmp &> /dev/null) ; then
|
||||||
( infocmp $TERM &> /dev/null ) || export TERM=xterm
|
case "${TERM}" in
|
||||||
;;
|
xterm*)
|
||||||
esac
|
( infocmp $TERM &> /dev/null ) || export TERM=xterm
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
( which lesspipe &> /dev/null ) && eval $(lesspipe)
|
( which lesspipe &> /dev/null ) && eval $(lesspipe)
|
||||||
export LESS=' -R'
|
export LESS=' -R'
|
||||||
|
|
Loading…
Add table
Reference in a new issue