]> git.donarmstrong.com Git - zsh.git/commitdiff
skip rest of zshrc if this is a dumb terminal (TRAMP)
authorDon Armstrong <don@donarmstrong.com>
Mon, 14 Aug 2017 17:50:52 +0000 (10:50 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 14 Aug 2017 17:50:52 +0000 (10:50 -0700)
.zsh/zshrc/10_switch_term

index a6397e0eab84039ddb7903ed4a38a15e96e9266d..bb2a2342a52df003ac2c2661a46ca91c176eb16c 100644 (file)
@@ -3,6 +3,14 @@
 #
 # Switches from rxvt to xterm if the defined terminal does not exist
 
+## if this is a dump term, return without setting up anything
+if [[ $TERM == "dumb" ]]; then
+    unsetopt zle
+    PS1='$ '
+    return
+fi;
+
+
 if [[ "$TERM" =~ "rxvt-" ]] && which tput >/dev/null 2>&1; then
     if [[ -z "$(tput longname 2>/dev/null)" ]]; then
         TERM="xterm-${TERM##rxvt-}"