From: Don Armstrong Date: Fri, 14 Apr 2017 17:41:24 +0000 (-0700) Subject: needs to be a regex X-Git-Url: https://git.donarmstrong.com/?p=zsh.git;a=commitdiff_plain;h=ec83ec7d3d1c4e4066c6333f26e6f798efb2d491 needs to be a regex --- 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