From: Don Armstrong Date: Fri, 26 Apr 2019 04:41:28 +0000 (-0700) Subject: switch term if it is st- X-Git-Url: https://git.donarmstrong.com/?p=zsh.git;a=commitdiff_plain;h=b594c68698929f8ab5b15fbbeaf6c8e80de08267 switch term if it is st- --- diff --git a/.zsh/zshrc/10_switch_term b/.zsh/zshrc/10_switch_term index bb2a234..6fefe69 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##stterm-}" + export TERM + fi; +fi; # vim:ft=zsh