]> git.donarmstrong.com Git - zsh.git/commitdiff
fix st- match
authorDon Armstrong <don@donarmstrong.com>
Fri, 26 Apr 2019 04:44:00 +0000 (21:44 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 26 Apr 2019 04:44:00 +0000 (21:44 -0700)
.zsh/zshrc/10_switch_term

index 6fefe6979a1f89acc9d9630817795ce3b1a62d03..0dbc66caabdf37483006303773e6e248e5b78df1 100644 (file)
@@ -25,7 +25,7 @@ if [[ "$TERM" =~ "stterm-" ]] && which tput >/dev/null 2>&1; then
 fi;
 if [[ "$TERM" =~ "st-" ]] && which tput >/dev/null 2>&1; then
     if [[ -z "$(tput longname 2>/dev/null)" ]]; then
-        TERM="xterm-${TERM##stterm-}"
+        TERM="xterm-${TERM##st-}"
         export TERM
     fi;
 fi;