]> git.donarmstrong.com Git - zsh.git/commitdiff
needs to be a regex
authorDon Armstrong <don@donarmstrong.com>
Fri, 14 Apr 2017 17:41:24 +0000 (10:41 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 14 Apr 2017 17:41:24 +0000 (10:41 -0700)
.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