]> git.donarmstrong.com Git - zsh.git/blob - .zsh/zshrc/10_switch_term
switch from rxvt to xterm if there's no termcap
[zsh.git] / .zsh / zshrc / 10_switch_term
1 # -*- mode: sh -*-
2 # zshrc/10_switch_term
3 #
4 # Switches from rxvt to xterm if the defined terminal does not exist
5
6 if [[ "$TERM" == "rxvt-" ]] && which tput >/dev/null 2>&1; then
7     if [[ -z "$(tput longname 2>/dev/null)" ]]; then
8         TERM="xterm-${TERM##rxvt-}"
9         export TERM
10     fi;
11 fi;
12
13 # vim:ft=zsh