--- /dev/null
+# -*- mode: sh -*-
+# zshrc/10_switch_term
+#
+# Switches from rxvt to xterm if the defined terminal does not exist
+
+if [[ "$TERM" == "rxvt-" ]] && which tput >/dev/null 2>&1; then
+ if [[ -z "$(tput longname 2>/dev/null)" ]]; then
+ TERM="xterm-${TERM##rxvt-}"
+ export TERM
+ fi;
+fi;
+
+# vim:ft=zsh