Merge branch 'master' into hjp
This commit is contained in:
commit
2b875f67e6
17
.znewterm
17
.znewterm
|
@ -23,20 +23,23 @@ then
|
||||||
stty erase
|
stty erase
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $TERM == xterm-256color && ! -f /usr/share/terminfo/x/xterm-256color ]]
|
if [[ $TERM == xterm-256color && ! -f /usr/share/terminfo/x/xterm-256color && ! -f /lib/terminfo/x/xterm-256color ]]
|
||||||
then
|
then
|
||||||
TERM=xterm
|
TERM=xterm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $TERM == xterm ]]
|
if [[ $TERM == xterm ]]
|
||||||
then
|
then
|
||||||
for t in xterm-256color xterm+256color
|
for t in xterm-256color
|
||||||
do
|
do
|
||||||
if [[ -f /usr/share/terminfo/x/$t ]]
|
for dir in /usr/share/terminfo/x /lib/terminfo/x/
|
||||||
then
|
do
|
||||||
TERM=$t
|
if [[ -f $dir/$t ]]
|
||||||
break
|
then
|
||||||
fi
|
TERM=$t
|
||||||
|
break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue