mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-13 03:07:18 +00:00
10 lines
314 B
Bash
10 lines
314 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 [ -z "$TERM" ]; then
|
||
|
export TERM=xterm
|
||
|
elif ! infocmp "$TERM" &>/dev/null; then
|
||
|
export TERM=xterm
|
||
|
echo "TERM set to xterm due to missing terminfo entry."
|
||
|
end
|