mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-14 20:27:18 +00:00
9 lines
302 B
Bash
9 lines
302 B
Bash
# If the set $TERM variable doesn't match any configured terminfo entries
|
|
# fall back to xterm. This fixes SSH connections from unknown terminals
|
|
|
|
if ! infocmp "$TERM" &>/dev/null; then
|
|
echo "Setting \$TERM to xterm-256color due to missing terminfo entry for $TERM."
|
|
export TERM=xterm-256color
|
|
fi
|
|
|