]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/10_switch_term
needs to be a regex
[zsh.git] / .zsh / zshrc / 10_switch_term
index 03406b05982fcdb1a6107172d940165b07ccb1f0..69f44a5ec3683c2c8cb2a200986152d818305c2a 100644 (file)
@@ -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