Merge branch 'master' into hjp
This commit is contained in:
commit
2b875f67e6
11
.znewterm
11
.znewterm
|
@ -23,21 +23,24 @@ then
|
|||
stty erase
|
||||
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
|
||||
TERM=xterm
|
||||
fi
|
||||
|
||||
if [[ $TERM == xterm ]]
|
||||
then
|
||||
for t in xterm-256color xterm+256color
|
||||
for t in xterm-256color
|
||||
do
|
||||
if [[ -f /usr/share/terminfo/x/$t ]]
|
||||
for dir in /usr/share/terminfo/x /lib/terminfo/x/
|
||||
do
|
||||
if [[ -f $dir/$t ]]
|
||||
then
|
||||
TERM=$t
|
||||
break
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
case "$TERM" in
|
||||
|
|
Loading…
Reference in New Issue