+handle system termcap incompatible $TERM
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index 43f2c8f..24121d4 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -107,6 +107,7 @@ export MINICOM="-m -c on"   # metakeys+color
 export HISTSIZE=100000
 export HISTFILESIZE="$HISTSIZE"
 export CVS_RSH="ssh"
+grep -qw "$TERM" /etc/termcap || export TERM=vt220
 
 # Force strcoll() to sort case-sensitively! (empty/undef doesn't work)
 export LC_COLLATE=C