mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:19:41 +00:00
Fall back to xterm-256color instead
This commit is contained in:
parent
419c916914
commit
d62ad7350f
|
@ -1,9 +1,8 @@
|
||||||
# If the set $TERM variable doesn't match any configured terminfo entries
|
# If the set $TERM variable doesn't match any configured terminfo entries
|
||||||
# fall back to xterm. This fixes SSH connections from unknown terminals
|
# fall back to xterm. This fixes SSH connections from unknown terminals
|
||||||
|
|
||||||
if [ -z "$TERM" ]; then
|
if ! infocmp "$TERM" &>/dev/null; then
|
||||||
export TERM=xterm
|
local original="$TERM"
|
||||||
elif ! infocmp "$TERM" &>/dev/null; then
|
export TERM=xterm-256color
|
||||||
export TERM=xterm
|
echo "TERM set to $TERM due to missing terminfo entry for $original."
|
||||||
echo "TERM set to xterm due to missing terminfo entry."
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue