]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/zshrc/10_switch_term
support stterm
[zsh.git] / .zsh / zshrc / 10_switch_term
index 69f44a5ec3683c2c8cb2a200986152d818305c2a..a6397e0eab84039ddb7903ed4a38a15e96e9266d 100644 (file)
@@ -9,5 +9,11 @@ if [[ "$TERM" =~ "rxvt-" ]] && which tput >/dev/null 2>&1; then
         export TERM
     fi;
 fi;
+if [[ "$TERM" =~ "stterm-" ]] && 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