X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.zsh%2Fzshrc%2F10_switch_term;h=0dbc66caabdf37483006303773e6e248e5b78df1;hb=37f21b6b48a149aad7ef67c5828cae9cab5159be;hp=bb2a2342a52df003ac2c2661a46ca91c176eb16c;hpb=cc9e39ca1c4fcd1ae3f2061c6abf41a7a9412bdf;p=zsh.git diff --git a/.zsh/zshrc/10_switch_term b/.zsh/zshrc/10_switch_term index bb2a234..0dbc66c 100644 --- a/.zsh/zshrc/10_switch_term +++ b/.zsh/zshrc/10_switch_term @@ -23,5 +23,11 @@ if [[ "$TERM" =~ "stterm-" ]] && which tput >/dev/null 2>&1; then export TERM fi; fi; +if [[ "$TERM" =~ "st-" ]] && which tput >/dev/null 2>&1; then + if [[ -z "$(tput longname 2>/dev/null)" ]]; then + TERM="xterm-${TERM##st-}" + export TERM + fi; +fi; # vim:ft=zsh