X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=.zsh%2Fzshrc%2F10_switch_term;fp=.zsh%2Fzshrc%2F10_switch_term;h=69f44a5ec3683c2c8cb2a200986152d818305c2a;hb=ec83ec7d3d1c4e4066c6333f26e6f798efb2d491;hp=03406b05982fcdb1a6107172d940165b07ccb1f0;hpb=67d7015320c70fd85571381fdcbfa52734866400;p=zsh.git diff --git a/.zsh/zshrc/10_switch_term b/.zsh/zshrc/10_switch_term index 03406b0..69f44a5 100644 --- a/.zsh/zshrc/10_switch_term +++ b/.zsh/zshrc/10_switch_term @@ -3,7 +3,7 @@ # # Switches from rxvt to xterm if the defined terminal does not exist -if [[ "$TERM" == "rxvt-" ]] && which tput >/dev/null 2>&1; then +if [[ "$TERM" =~ "rxvt-" ]] && which tput >/dev/null 2>&1; then if [[ -z "$(tput longname 2>/dev/null)" ]]; then TERM="xterm-${TERM##rxvt-}" export TERM