mirror of
https://github.com/ItsDrike/nixdots
synced 2024-09-20 11:19:42 +00:00
9 lines
315 B
Bash
9 lines
315 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
|
|
local original="$TERM"
|
|
export TERM=xterm-256color
|
|
echo "TERM set to $TERM due to missing terminfo entry for $original."
|
|
fi
|